Using ASP.NET MVC can be used the view engine Razor.
Razor let you use c# code after the @
sign.
As example
@if (Model.Category == "watersports")
{
<p>Splash!!</p>
}
Furthermore you can use something like @DateTime.Now
for get the current time.
My question is: what functions can be used? From where Razor import them?
C is an imperative procedural language supporting structured programming, lexical variable scope, and recursion, with a static type system. It was designed to be compiled to provide low-level access to memory and language constructs that map efficiently to machine instructions, all with minimal runtime support.
C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...
-= Subtract AND assignment operator. It subtracts the right operand from the left operand and assigns the result to the left operand. C -= A is equivalent to C = C - A.
Any public class. They get imported with @using MyNamespace
. You can also import them in the config file
<system.web.webPages.razor>
element.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With