Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.NET 2003 - .NET 2005 Conversion Issue

Status
Not open for further replies.

kizmar2

Programmer
May 25, 2004
164
US
I just converted a web app from .NET 2003 (ASP.NET / VB.NET) to .NET 2005. I'm noticing now that a couple events are firing twice now for no reason (they weren't doing this before I converted them).

I have no clue why they're firing twice, there's no code that would call the sub again, but it is.

KizMar
------------
 
By the way, it looks like it's firing all of the events like ..._Click and ...__SelectedIndexChanged twice. I have no clue why it's doing this.

KizMar
------------
 
try tracing through the code and see where it may be being called again.
 
When I did that I didn't see why it was firing it twice. I just figured it out though... with .NET 2003 I had to put "OnClick="btnUpdate_Click" in the button tag on the HTML side... evidently with .NET 2005 (ASP 2.0) you don't have to do that. When I removed the onclick event of the botton in the html side it fixed it.

KizMar
------------
 
In 2003 you don't have to specify the onclick in the HTML either unless you are using a sub other than the default event. But I am glad you got it working.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top