Editing a page in VS 2005 - add a control and it's not in the code behind.

U

UJ

I've got a web page I'm working on. I add some control through the HTML with
runat="server" and when I switch to code view, they aren't defined. Do I
have to define them myself? It doesn't seem to need to do that when you are
first creating the page.

TIA - Jeff.
 
M

Mark Fitzpatrick

If you edit them in HTML view, change the page to designer view next. That
enables VS to build the control list and assign the proper variables for
them so they'll be accessed in codebehind.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top