Answered by:
using AJAX to postback dropdownlist

Question
-
User1126057398 posted
Hello all i have VS2005 and ASP.NET 2.0 AJAX Extensions Release Candidate (RC) on my system. I have two dropdownlist on my page eg one for displaying country and other for corresponding state ie state dropdown is dependent on country dropdown. On my web page I am using "ScriptManager1.RegisterAsyncPostBackControl(DropDownList1);" on page load. I had done it with Update Panel control and its working is Ok. But in case of ScriptManager1.RegisterAsyncPostBackControl(DropDownList1);" the results r not as expected. On selecting value from Country's dropdown nothing hapens though I had written code on country's dropdown SelectedIndexChanged event. Any help???????????Tuesday, April 22, 2008 3:47 AM
Answers
-
User-818936891 posted
hi,
for the same refer this article.
http://www.codeproject.com/KB/ajax/dropdown_box_using_ajax.aspx
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, April 22, 2008 4:44 AM -
User770037084 posted
First, make sure you have AutoPostback set to true on the DropDownList that you want to trigger a partial postback.
Second, you should consider using the CascadingDropdown extender instead of reinventing that wheel.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, April 22, 2008 2:01 PM -
User222791821 posted
Hi,
Thank you for your help!
Use webservice/pagemathod and client side javascript!
Refer to
Best Regards,
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, April 28, 2008 6:36 AM
All replies
-
User-818936891 posted
hi,
for the same refer this article.
http://www.codeproject.com/KB/ajax/dropdown_box_using_ajax.aspx
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, April 22, 2008 4:44 AM -
User1126057398 posted
Any Help!!!Tuesday, April 22, 2008 5:07 AM -
User770037084 posted
First, make sure you have AutoPostback set to true on the DropDownList that you want to trigger a partial postback.
Second, you should consider using the CascadingDropdown extender instead of reinventing that wheel.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, April 22, 2008 2:01 PM -
User1126057398 posted
Thanks for your reply!!! But I want to add(to my question) that right now my state dropdown list is populating with corresponding country name. But the problem is that whole of the page is postback. How can one use "ScriptManager1.RegisterAsyncPostBackControl(DropDownList1);" to fill the dropdown without using Update Panel.
Tuesday, April 22, 2008 11:57 PM -
User1126057398 posted
Hello Sathesh
Thanks for your reply!!! But my problem had not solved. Can you tell me how to fill dropdownlist using AJAX but without using Update Panel.
Wednesday, April 23, 2008 3:07 AM -
User222791821 posted
Hi,
Thank you for your help!
Use webservice/pagemathod and client side javascript!
Refer to
Best Regards,
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, April 28, 2008 6:36 AM -
User1126057398 posted
Hello
I want to avoid writing web service. Can you suggest me some other alternative???
Monday, April 28, 2008 6:52 AM -
User222791821 posted
Use Iframe, no other!
Monday, April 28, 2008 7:11 AM -
User1126057398 posted
[:)]Can you explain IFrame in detail with example. Thanks in advance.Monday, April 28, 2008 7:26 AM