ankitweblogic logo
W e b t u t o r i a l s

ASP Tutorial

Website

ASP.NET Introduction

ASP.NET Web Forms

Standard Controls

Label Control

TextBox Control

Image Control

Button Controls

Redirecting User

Using HyperLinks

RadioButton Control

RadioButtonList

CheckBox Control

CheckBoxList Control

DropDownList

ListBox Control

ImageMap Control

Master Page

View State

Event-Driven Programming

IsPostBack

ASP.NET Page Structure

Visibility of Controls

Formatting Controls

Applying CSS

Dynamic CSS

Using Style Class

Themes and Skins

Panel Control

PlaceHolder Control

AdRotator Control

Calendar Control

Validation Controls

Page Navigation

User Control

Separating Code-Presentation

Overview of ADO.NET

Data Binding

DataBinding List Control

Ispostback in Asp.Net

IsPostBack Boolean property can be used to execute code only when the page is first loaded, not every time the page is submitted. Initially, when the page is first loaded, the value of this property is false. When the page is submitted, the value of this property becomes true. This technique has two advantages:
• It conserves system resources and enables the page to be re-loaded faster. Retrieving records from the database and affects the performance of the page.
• It maintains the user’s selection with the help of the list control’s properties, SelectedIndex, and SelectedItem.
Output-1
Ispostback
Output-2
IsPostBack