Tuesday 15 November 2016

ASP and C# .Net

Caching  :

It is a technique used to increase performance by keeping frequently accessed data or files in memory.

In this technique the request for a cached file and data will be accessed from cache instead of actual location of that file.

There are different three types of caching.

1. Output Caching
2. Fragment Caching
3. Data Caching

Fragment caches the portion of the page generated by the request.
<%@ Outputcache Duration="30" varyByParam="CategoryID;SelectedID" %>

Gridview In  Asp .Net :

In ASP .Net there are following Data Bound(data Presentation) Controls Used for different purpose.

1. DataList
2. DetailsView
3. FormView
4. GridView
5. ListView
6. Repeater



























1. DetailsView and FormView controls can show only individual record at the same time.

2. GridView,DataList,Repeaterand ListView controls show collection of  records.






GridView :

1. It was introduced with ASP .NET 2.0.
2. It is used to display the values of a data source in a table.
3. In the GridView control each column represents a field where each row represents a record.
4. It can also display empty data.
5. It is provides many built-in capabilites that allow the user to sort.update,delete,select and paging.
6. The GridView control improvements such as user interface customization using bound fields and    templates.

ASP .NET GridView Example :


No comments:

Post a Comment