IsPostBack Property

Akiii
Posted by Akiii under C# category on | Points: 40 | Views : 1617
Indicates whether the page is being rendered for the first time or is being loaded in response to a postback.

private void Page_Load()
{
if (!IsPostBack)
{
YourFunctionName();
}
}


In above example, if the page is rendering for the first time then the YourFunctionName( ) function will execute otherwise it will not execute.


Thanks and Regards
Akiii

Comments or Responses

Login to post response