You must Sign In to post a response.
  • Category: ASP.NET

    Page_Load event fires multiple times?

    Hi


    Page_Load event fires multiple times when i am running my page.
    any idea?? how can Avoid Page_Load event fires multiple.
  • #586284
    Page load event fires every time the server event fires.When a server event is triggered than the page load event fires first and then the server event.
    Regards,
    Programmer

    http://www.dotnetutorial.com/interview-questions.aspx?catid=1

  • #586302
    How can Avoid This ??
    Thanks & Regards
    Lion
    Jaipur (Pink City) India

  • #586305
    Hi,

    Have u tried ispostback property of that page.

  • #586315
    Yes, I am using ispostback property .
    Thanks & Regards
    Lion
    Jaipur (Pink City) India

  • #586317
    hi..

    On page _load check the following condition:
    if(!isPostback)
    {

    }

    Regards,
    Divyashree.k
    Experience is the name every one gives to their mistakes.

  • #586318
    just put this code on page load event


    if(!IsPostBack)
    {
    //write your code here
    }



    hope this will help you

  • #586427
    I have go the solution..

    set page Property AutoEventWireup="false"

    Thanks & Regards
    Lion
    Jaipur (Pink City) India


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.