VB Codebehind reference issues

Joined
Mar 23, 2009
Messages
8
Reaction score
0
I am trying to set the text of a textbox from a vb code behind file. Unfortunatly, Visual Web Dev. 2010 is not recognizing the name of my component. The error reads 'demo1' is not declared. It may be inaccessible due to its protection level

In .aspx:
HTML:
<asp:textbox id="demo1" name="demo1" TextMode="multiline" runat="server" rows="20" columns="50" />

in .aspx.vb:
Code:
demo1.Text = Session("event").ToString

This must be a simple thing I'm missing but I am lost-in-the-sauce as to what...

Thanks
 

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,265
Messages
2,571,069
Members
48,771
Latest member
ElysaD

Latest Threads

Top