ASP.NET MVC Razor IsPost property with IF –Else loop

added by jalpesh
12/2/2010 11:53:25 PM

0 Kicks, 111 Views

ASP.NET MVC Razor a new view engine from Microsoft looks very promising. Here are example of code where we can determine page is post back or not. It support a IsPost Property which will tell you whether page is post back or not. So based on that we can write code for handling post back. Also one of greatest feature of razor is we can write code for decision making like if else and other stuff with single @ statement isn’t that great stuff. Here is the stuff how we can write the code with IsPost prop...


0 comments