mardi 14 novembre 2017

Alternative request uri in c# (cshtm)

I looking for help with C# (cshtml) if statement, to display paragraph on only homepage site, like in php.

<?php
    if ($_SERVER['REQUEST_URI']=='/')
    {
        echo('<p>something</p>');
    }
?>   

Thanks in advance

Aucun commentaire:

Enregistrer un commentaire