Yeah, i found that i was missing the reference in the code-behind. I hadn't
added it in myself in the first page, so i dind't remember that it had to be
there in the non-working page.
Thanks (and nice name...)
Tim
"Michael Mulholland" <an*******@discussions.microsoft.com> wrote in message
news:76****************************@phx.gbl...
Did you check the contents of the windows designer
generated code from the source code-behind file? It may be
hiding a reference to the object, such as..
Protected WithEvents myControl as
system.web.webcontrols.label
You always need a reference in the code-behind to access
the web form controls.
Might help!
-----Original Message-----
I have one page where i have some <div> tags set to be
runat="server" (andi've given them an id) and i can access them from the
code-behind file justfine.
I have another page where i've done essentially the same
thing (even copyingthe code from the other file) and i cannot access them
from the code-behindfile.
Any clues what would cause this?
Just a tad frustrating because i can't move forward on
this page withoutaccessing those...
Thanks in advance,
Tim
.