Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspdotnet_website_programming thread: access a control


Message #1 by Greg Partin <GPartin@c...> on Thu, 4 Apr 2002 16:25:58 -0500
How can I access a dropdown that I have created in a Web User Control from a
Code Behind Page?  I have a drop down called subject in a control called
subjectdropdown.  In my code behind page i have Imports
MyApp.SubjectDropDown and in my page_load function i want to be able to
access the value of the drop down.  I am trying something like this:

MyApp.SubjectDropDown.Subject.Value

But I am getting the following error:
Referece to a non-shared member requires an object reference.

Any insight would be appreciated.

thanks,
Greg

  Return to Index