Asp.net C# how to use dropdownlist inside the update panel

Posted by Vanchi050585 under Regular Expressions on 2/21/2011 | Points: 10 | Views : 24567 | Status : [Member] | Replies : 2
hi all,

Asp.net C# how to use dropdownlist inside the update panel. i have 2 dropdownlist , when i select the item of dropdown list1 the related values should be bind in the dropdownlist2.


please let me know how to use.

thanks

Thanks
tvn



Responses

Posted by: Madhu.b.rokkam on: 2/22/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Check this link ..

http://forums.asp.net/p/1053484/1493464.aspx

Thanks and Regards
Madhu

Vanchi050585, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: T.saravanan on: 2/22/2011 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Just add two dropdownlist controls inside the update panel control in your source page.In first dropdownList control set AutoPostback is 'true' then to call selected index event of that control.Write your code inside this event.If using Update Panel Control one script manager is must in a page.

For your reference...
http://stackoverflow.com/questions/341080/asp-net-dropdownlist-autopostback-not-working-what-am-i-missing
http://www.codeproject.com/Answers/136317/Regarding-update-panel-and-dropdownlist.aspx#answer1

Cheers :)


Thanks,
T.Saravanan

Vanchi050585, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response