Click here to Skip to main content
15,890,399 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi All,
Page Load Event occur multiple times more than once in my application even afetr !page.Ispostback was checked...The below is my code for reference..Kindly find any solution..
C#
if (!Page.IsPostBack)
       {
           ddlYears.SelectedIndex = 0;
           int yearname = Convert.ToInt32(DateTime.Now.Year);
           int intloop;
           int minus = yearname - 2;

           for (intloop = minus; intloop <= yearname; intloop++)
           {
               ddlYears.Items.Add(new ListItem(intloop.ToString()));
           }

}
Posted
Comments
Sergey Alexandrovich Kryukov 5-Feb-14 11:35am    
Debugger? "Call stack" window?
—SA
CoderPanda 5-Feb-14 13:54pm    
Not sure, but it can happen in case of call backs too. Is any jQuery callback causing it?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900