The DataGrid Web server control is a powerful tool for displaying information from a data source. It is easy to use; you can display editable data in a professional-looking grid by setting only a few properties. At the same time, the grid has a sophisticated object model that provides you with great flexibility in how you display the data.
AutoPostBack automatically posts the page back to the server when state of the control is changed.
ASP.NET uses client-side code to send messages back to the server Thus the server can be aware of what’s happening on the client.
User controls are created by the developer to allow for the reuse of controls that need specific functionality, while the Server controls are built-in.
AsyncPostBackTimeout Property needs to set which gets or sets a value that indicates the time, in seconds, before asynchronous postback time out if no response is received from the server.
<asp:scriptmanager id=”scriptManager1″ runat=”server” asyncpostbackerrormessage=”We can not serve your request at this moment.Please try later.” asyncpostbacktimeout=”36000″></asp:scriptmanager>
The default value of this property is 90 second. We can also set the user defined error message using asyncpostbackerrormessage property (as shown in above code) for time out.
Readystate property holds the response of the server to the query generated from the client side. Each time the readystate property changes onreadystatechange function will be executed. Some of the values for the readystate property are as follows if the status is zero the request is not initialized, 1 the request has been set up, 2 the request has been sent, 3 the request is in process, 4 the request is complete.
The connection string consists of the following parts:
Server: Whether local or remote.
Uid: User Id (sa-in sql server)
Password: The required password to be filled-in here
Database: The database name.