Home Alternative request uri in c# (cshtml)
Reply: 0

Alternative request uri in c# (cshtml)

user346
1#
user346 Published in June 22, 2018, 11:31 am

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

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.316652 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO