asp 2.0

How to preserve member variables for an ASP.NET page in VB.NET

Software developers can follow the next basic principle. They can save all member variables to view state when the Page.PreRender event occurs and retrieve them when the Page.Load event occurs. The Page.Load event happens every time the page is created. In case of a postback, the Load event occurs first, followed by any other control events. The next …

Learn more

Events in GridView control

Event
Description

PageIndexChanging, PageIndexChanged
Both events arise when one of the pager buttons is clicked. They fire before and after the grid control handles the paging operation.

RowCancelingEdit
The event arises when the Cancel button of a row in edit mode is clicked, but before the row exits edit mode.

RowCommand
Arises when …

Learn more

Template properties of GridView control

Property

Type

Description

EmptyDataTemplate

 

ITemplate

The property is used to indicate the template content to be rendered when the control is bound to an empty source. This property takes precedence over EmptyDataText if both are set. If neither is set, the grid isn’t rendered if bound to an empty data source.

PagerTemplate

 

ITemplate

The property …

Learn more