Custom command button click is firing page load event everytime

Hi,

Whenever clicking on the Custom command button for a Excel Grid it is firing entire ASP.net page life cycle and it is loading the Page_Load event also, can you please provide some solution to this without page load event fire. - with sample

Regards,

Rajkumar

Hi,


I think you may try to use Page.IsPostBack attribute in Page_Load event accordingly e.g

protected void Page_Load(object sender, EventArgs e)

{

if (!Page.IsPostBack == true)

{
//Your code goes here.

}

//…

}

Hope, this helps!

Thank you.