Geeks With Blogs
Shravan's Articles on .NET A .NET Blog ASP.NET Articles related to ASP.NET, ASP.NET AJAX, ASP.NET Troubleshooting, Performance etc.
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

Overview of ASP.NET DataBinding
Hi this Article is aimed at discussing only the outlines of ASP.NET DataBinding. ASP.NET provides a rich set of controls for working with data.ASP.NET provides the DataBound controls,DataSource Controls to work with data. DataBound Controls : We can use DataBound Controls in our application's to generate the user interface for working with data.The DataBound Controls are used to display the data and modify the data. There are three types of DataBound Controls are available. List Controls Tabular ......

Posted On Sunday, January 3, 2010 11:36 PM

Dynamic Compilation of ASP.NET Pages
When we creates a page in ASP.NET internally it create a .NET class. i.e: An instance of System.Web.UI.Page class. All the content in ASP.NET page including scripts,HTML content and plain text is compiled into .NET class. When a client request for ASP.NET page then ASP.NET Framework searches for a .NET class corresponding to the page then executes the class.If the class is not found then it compiles the page into new .NET class and stores the class into temporary ASP.NET folder in the following location. ......

Posted On Saturday, December 26, 2009 11:32 PM

View State?
HTTP protocol is stateless protocol. Each time you request a web page from the web application, from web application perspective, you are a completely new person.HTTP protocol can't remember the data of a request once it is submitted to the web server so we can't use the request data of one request in an other request. How ASP.NET manages the transcend behavior of the HTTP? Look at the below example: <%@ Page Language="C#"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ......

Posted On Friday, December 25, 2009 11:49 PM

ASP.NET Controls
An ASP.NET Control is .NET class that execute on the server and renders the certain content into the browser. ASP.NET provides over 70 controls.We can use these wide range of controls for basic thing like to display the static text to displaying the records in database. Here is an over of controls available in ASP.NET Framework 3.5. Standard Controls : The standard controls enable you to render form elements such a buttons,labels,lists,input fields. Data Controls : The data controls enable you to ......

Posted On Friday, December 25, 2009 12:42 AM

Copyright © Shravan Kumar | Powered by: