Geeks With Blogs
Shravan's Articles on .NET A .NET Blog ASP.NET MVC
How To Create Sessionless Controller in MVC3
How to manage the controller's session state? Simply we can decorate the controller class with "SessionState" attribute. [SessionState()] attribute accepts SessionStateBehaviour enumeration. SessionStateBehaviour enumeration has the following constants. SessionStateBehavior.Default - ASP.NET default logic is used to determine the session state behavior for the request. SessionStateBehavior.Required - Full read-write session state behavior is enabled for the request. SessionStateBehavior.ReadOnly ......

Posted On Friday, May 13, 2011 11:00 PM

Creating Custom HTML Helpers in ASP.NET MVC
ASP.NET MVC provides many built-in HTML Helpers. With help of HTML Helpers we can reduce the amount of typing of HTML tags for creating a HTML page. For example we use Html.TextBox() helper method it generates html input textbox. Write the following code snippet in MVC View: <%=Html.TextBox("txtName... It generates the following html in output page: <input id="txtName" name="txtName" type="text" value="20" /> List of built-in HTML Helpers provided by ASP.NET MVC. ActionLink() - Links ......

Posted On Friday, March 18, 2011 7:30 PM

Copyright © Shravan Kumar | Powered by: