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