dropdownlist on usercontrol populate host page label

  • Thread starter Thread starter bobbyc13
  • Start date Start date
B

bobbyc13

I am new to vb.net and am getting frustrated and cannot find a post on
the subject. I have a usercontrol (.ascx) with a dropdownlist. on the
selectedindexchanged event of the codebeside of the .ascx page, i would
like the newly selected value of the dropdown box to populate a label
on the host page(.aspx). It seems easy and if the label is on the
control I can get it to work with minimal effort. Please advise me on
how to do this. I prefer vb.net. I am using vs2005. thanks
 
You will need to set the autopostback property of the dropdownlist to
true. If this doesn't help, please post some code...
 
your usercountrol should fire an event, that the page handles, or have a
label control property for the label, that the page sets, then the
usercontrol will know the proper label

-- bruce (sqlwork.com)
 
Back
Top