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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User Controls and another baffling problem!!

Status
Not open for further replies.

KevoMee

Technical User
Apr 30, 2002
72
IE
Howdy folks,

Ok then, I've created 2 different user controls in my project. Both of these user controls have the same buttons, "Search" and "Log Out". Now I have written the event handlers for when these are pressed. Both of these operate in the exact same way and I did them through Visual in the exact same way. Now the thing is that when I run one of the user controls through on my web page and press the "search" or "log out" button nothing happens (I've debugged it and it doesn't even enter the fuctions) while on the other webpage it works just fine.

If anyone could lend a hand it would be much appreciated. I have even tried to rewrite the entire user control again but with no change.

Any ideas?
 
Take a look in the autogenerated code section in the InitializeComponent section and see if the code in there is the same in both user controls. I have had studio erase that code which makes your buttons etc that have event handlers essentially do nothing.

To prevent VS from erasing that code you can go to your options and turn off the autoformatting check boxes at the top of the html section (at least I have not had it erase any more).

HTH Crystal
crystalized_s@yahoo.com

--------------------------------------------------

Experience is one thing you can't get for nothing.

-Oscar Wilde

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top