Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Diane Collins   on Oct 21 In Asp.net Category.

  
Question Answered By: Geraldine Perkins   on Oct 21

I ran into a double-executing problem a few times before --- there's a few
possibilities why this could be happening...

* check your page  directive AutoEventWireup and make sure it's equal to
"false"
* i would create a Page_Load event, even if you don't plan to use it. this
way you can verify that the function is running as expected - and then have
some control over it in the future.

if you're using vb, then write it as:
Page_Load(.... args ....) Handles Page.Load
if you're using c#, then write it as:
Page_Load(.... args ....)
- and also in the InitializeComponent() function, add the line -
this.Load += new System.EventHandler(this.Page_Load);

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on aspx Page is Loading Twice Or get search suggestion and latest updates.


Tagged: