Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Can I use C# extension methods in a Razor function?

$
0
0
I tried to use Sanitize() extension method for strings in a Razor function but it gives error: No extension method found.

Another question is that how can I return values from C# functions in Razor razor function? Standart function markup only returns XHTML markup. I want to send email in a razor function so I need to call my own SendMail() C# function which one returns the result as success or not.

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>