dropdownlist on usercontrol populate host page label

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
 
K

KJ

You will need to set the autopostback property of the dropdownlist to
true. If this doesn't help, please post some code...
 
B

bruce barker \(sqlwork.com\)

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)
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top