VB Codebehind reference issues

Discussion in '.NET' started by gordonta, Feb 28, 2011.

  1. gordonta

    gordonta

    Joined:
    Mar 23, 2009
    Messages:
    8
    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
    gordonta, Feb 28, 2011
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. TJS
    Replies:
    2
    Views:
    570
  2. Jason Kendall
    Replies:
    2
    Views:
    3,090
    Jason Kendall
    Feb 4, 2005
  3. needin4mation@gmail.com

    How do I reference a second class than the codebehind page?

    needin4mation@gmail.com, Jul 25, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    382
    =?Utf-8?B?SmFzb24gTCBMaW5k?=
    Jul 25, 2005
  4. antonyliu2002@yahoo.com
    Replies:
    1
    Views:
    381
    =?Utf-8?B?RFdT?=
    Feb 7, 2006
  5. Clinton Mead
    Replies:
    4
    Views:
    396
    James Kanze
    Dec 1, 2010
Loading...

Share This Page