Dropdownlist changing event

D

Dave

Hello.
I have two dropdownlist web controls on my webform, for example "A" and "B".
The dropdownlist "A" fills at page load, but the dropdownlist "B" must be
filled (from database) with data at dropdownlist "A" changing.
So I need fill dropdownlist "B" on changing of dropdownlist "A" and I need
handle this action at server side.
How can I do this?

Thank You.
 
H

Hermit Dave

set the autopostback property of A to true and then double click A from
designer. That will openup the codebehind and vs.net will associate the
correct event and will show the handler to you. populate it with whatever
calls you wish to.. ie fetch the data and associate the ddl B


--

Regards,

Hermit Dave
(http://hdave.blogspot.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

Top