(Hopefully Simple to answer) question about User Controls

  • Thread starter Thread starter graham bates
  • Start date Start date
G

graham bates

Hi There,

In desperation I was wondering whether anyone could cast their eye over
a small problem I having. I am attempting to create a user control
which basically consists of a DropDown list. Now, I wish to both
retrieve values from this drop down list, and also to change the values
that form the drop down list collection. I havent even managed the
first of these tasks yet, even though I follow the get/set logic of
what I need to do, so I was hoping if I pasted a small sample piece of
code, someone could let me know where I am going wrong.

Rather than cut and pasting the code here, I have created the following
page;

http://www.asthecrowflies.co.uk/dropdownusercontrol.htm

Which shows my pages, plus the code behind. It would appear that when I
try to get the value of the text box (My sample code attempts to print
the selected value into the label), it fails, with the value seemingly
not being retrieved, and therefore the label.text is being written to
with a null value.

Because I have kept the example so simple I was hoping it would appear
really obvious to someone where I was going wrong - if anyone has any
ideas, please could you reply to the group.

Many Thanks,

Graham
 
Hi Graham!

You should post your question in the controls newsgroup:

microsoft.public.dotnet.languages.vb.controls

Not sure if the above newsgroup is good for Web Controls though

Crouchie1998
BA (HONS) MCP MCSE
 

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

Back
Top