- View state is the method that the ASP.NET page framework uses to preserve page and control values between round trips. When the HTML markup for the page is rendered, the current state of the page and values that must be retained during post back are serialized into base64-encoded strings.
- When an ASP.NET page is submitted to the server, the state of the controls is encoded and sent to the server at every form submission in a hidden field known as
Wednesday, 19 November 2014
Tuesday, 18 November 2014
What is Session State In Asp.Net
- ASP.NET session state enables you to store and retrieve values for a user as the user navigates ASP.NET pages in a Web application. HTTP is a stateless protocol. This means that a Web server treats each HTTP request for a page as an independent request.Session is defined as the period of time that a unique user interacts with a Web application. When a new user begins to interact with the application, a new session ID is generated and associated with all subsequent requests from that same client and stored in a cookie on the client machine.
Caching In Asp.Net
Caching is the ability to store page output and data in memory for the first time it is requested and later we can quickly retrieve them for multiple, repetitious client requests. It is like keeping a copy of something for later use, so we can reduce the load factor on Web servers and database servers by implementing caching on a Web application.
Writing Code In C#
Cache.Add("dataset", dataset, null, System.Web.Caching.Cache.NoAbsoluteExpiration, new TimeSpan(0, 0, 60), System.Web.Caching.CacheItemPriority.Default, null);
How To Use Cookies ASP.NET.
Cookies provide the ability to store small amounts of data on a clients machine. It is often used to store user preferences, session variables, or identity. When the user visits your Web site another time, the application can retrieve the information it stored earlier.
The browser is responsible for managing cookies on a user system. Cookies can be created, accessed, and modified directly by script running on the client and pass between the client and server during requests.
Writing code in C#
Response.Cookies["UserName"].Value = "Ashok";Response.Cookies["UserName"].Expires = DateTime.Now.AddDays(1);
How To Use Grid View Page Index Changing In Asp.Net
Here I Will Explain How to use Page Index/Pagination In Grid View.With various types of paging in ASP.NET. We use C# code to bind the SQL data with a Grid View control and use the following simple steps to make your ASP.NET Grid View control with paging enabled. The Grid View control provides you with an easy way to display the number of items on a page

What is Page Index In Asp.Net?
To show he number of items on a page in Grid View.
C# code to bind the SQL data with a Grid View control and use the following steps.
Create a SQL table

What is Page Index In Asp.Net?
To show he number of items on a page in Grid View.
C# code to bind the SQL data with a Grid View control and use the following steps.
Create a SQL table
Saturday, 1 November 2014
How To Copy Whole Database From One Computer To Another By Using Generate Script
What is Generate Script?
This is a process in which we can generate the script of the existing database. And can use easily on other client system without loosing any Data.
Why it is different from import&export?
By using Generate Script we can export whole database as well as data and script but in import & export only we can extract the skeleton of the Database.It's a easiest way to copy database from one system to another.
Here Are the steps to Generate Script of the database.
Step-1.
Right click on the database in sql and choose Task > Generate Script.
This is a process in which we can generate the script of the existing database. And can use easily on other client system without loosing any Data.
Why it is different from import&export?
By using Generate Script we can export whole database as well as data and script but in import & export only we can extract the skeleton of the Database.It's a easiest way to copy database from one system to another.
Here Are the steps to Generate Script of the database.
Step-1.
Right click on the database in sql and choose Task > Generate Script.
Tuesday, 28 October 2014
What Is CMS ?
What Is CMS ? CMS Stand for (Content management system) is a system used to manage the content of a Web site. that allows publishing, editing
and modifying content, organizing, deleting as well as maintenance from a
central interface. CMSs have been available since
the late 1990s.
CMSs are often used to run websites containing blog, news,
and shopping.
Many corporate and marketing websites use CMSs.Tuesday, 21 October 2014
Freeze GridView Header Row In Asp.Net
In Grid View Control You Can easily display all the collection of data and we can easily add sorting and paging, and perform in-line editing.Some time there is large no of data which makes grid view scrollable, headers will also scroll along with the other grid view contents making it difficult for the user to understand the data properly.In this situations we can freeze the header row then the user can scroll the data and see the header as fixed.
Monday, 20 October 2014
How to add Data Item Index in Grid View In Asp.Net
The GridView control is the successor to the DataGrid and extends it in a number of ways. While developing GridView control in ASP.NET, programmers often requires to display row number in GridView controls.
This can be accomplished by addingtthe Container.DataItemIndex in the html markup of the Gridview control.
Subscribe to:
Posts (Atom)