Page Refresh Hell (Button event fired again)

Discussion in 'ASP .Net' started by zEE, Jun 3, 2006.

  1. zEE

    zEE Guest

    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
     
    zEE, Jun 3, 2006
    #1
    1. Advertisements

  2. zEE

    Waqas

    Joined:
    Aug 22, 2012
    Messages:
    4
    Likes Received:
    0
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Earl Teigrob
    Replies:
    1
    Views:
    1,430
    Earl Teigrob
    Dec 18, 2003
  2. jorge
    Replies:
    2
    Views:
    1,654
    jorge
    May 26, 2004
  3. =?Utf-8?B?TWlrZQ==?=

    ASP.NET Postback Event Occurrs Again after page refresh

    =?Utf-8?B?TWlrZQ==?=, Apr 30, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    3,751
  4. Max2006
    Replies:
    2
    Views:
    1,833
    Walter Wang [MSFT]
    Sep 19, 2007
  5. jorge
    Replies:
    1
    Views:
    613
    Teemu Keiski
    May 28, 2004
  6. jorge
    Replies:
    0
    Views:
    499
    jorge
    May 25, 2004
  7. jorge
    Replies:
    0
    Views:
    465
    jorge
    May 25, 2004
  8. Coo Coo
    Replies:
    0
    Views:
    1,534
    Coo Coo
    Oct 26, 2004
Loading...