Page Refresh Hell (Button event fired again)

Z

zEE

The solution to the problem is

let say i have a function


private void btn_delete_click(object Sender, System.EvenArgs e)
{
//logic to perform on button click


// In order to reflect the changes on the current page write


Page.Response.Redirect(Page.Request.Url.ToString(), false);
}


Now click F5 ............button event will not be fired

Hope it will help u guys
tc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top