Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Visual Studio 2005 ASP.net new control on page does not register in code behind.  1.1 upgrade to 2.0

Posted on 2008-10-09
2
Medium Priority
?
224 Views
Last Modified: 2013-11-26
I have started working at a new place...

They have upgraded their code from 1.1 to 2.0.  

We are using Visual Studio 2005.

When I add a new control to a webpage, I double click on it to start codeing an event.  The code shows up, but the handles statement already shows an error like it doesn't know about this control.  I have tried saving, compiling etc....

My current work around is to add the control withevents to the top of the file, but I don't want to have to do this for every control I add.

Is there a way to fix this.  I have about 30 pages or more to work with.

Thanks,

0
Comment
Question by:Rog D
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Expert Comment

by:Solar_Flare
ID: 22681699
I get this sometimes, when I do I go into the page.designer.vb file and add a line for the new control. VS then knows about the control from the code behind and will compile.
0
 
LVL 8

Accepted Solution

by:
Rog D earned 0 total points
ID: 22682133
Yes, I understand, but need to figure out a way around having to manually add the line myself.

That is the question,

Rog
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question