code to perform cascading of dropdownlists without postback using c# in asp.net [modified]
-
can someone help me out with the code in C# to cascade the dropdownlists without postback event ... im using MS visual studio .net 2003 ..where i cant use ajax .... the scenario is " .. i have four dropdownlists ... and wen i select an item fromthe first dropdown say("D1") the corresponding values for tht selected item shld get populated in the second dropdown say (D2).. and is the same with the other dropdowns as well ....
modified on Tuesday, September 9, 2008 1:59 AM
-
can someone help me out with the code in C# to cascade the dropdownlists without postback event ... im using MS visual studio .net 2003 ..where i cant use ajax .... the scenario is " .. i have four dropdownlists ... and wen i select an item fromthe first dropdown say("D1") the corresponding values for tht selected item shld get populated in the second dropdown say (D2).. and is the same with the other dropdowns as well ....
modified on Tuesday, September 9, 2008 1:59 AM
if you can't use javascript and you don't want to use postbacks then I don't think it is possible...
-
can someone help me out with the code in C# to cascade the dropdownlists without postback event ... im using MS visual studio .net 2003 ..where i cant use ajax .... the scenario is " .. i have four dropdownlists ... and wen i select an item fromthe first dropdown say("D1") the corresponding values for tht selected item shld get populated in the second dropdown say (D2).. and is the same with the other dropdowns as well ....
modified on Tuesday, September 9, 2008 1:59 AM
jaya86 wrote:
without postback event
Why you don't want postbacks? If you want to use AJAX control then here is that control ? http://www.asp.net/AJAX/AjaxControlToolkit/Samples/CascadingDropDown/CascadingDropDown.aspx[^] Another alternative is using javascript There is one more method called PageMethods using AJAX search for it that can also help you
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " Check My Blog
-
can someone help me out with the code in C# to cascade the dropdownlists without postback event ... im using MS visual studio .net 2003 ..where i cant use ajax .... the scenario is " .. i have four dropdownlists ... and wen i select an item fromthe first dropdown say("D1") the corresponding values for tht selected item shld get populated in the second dropdown say (D2).. and is the same with the other dropdowns as well ....
modified on Tuesday, September 9, 2008 1:59 AM
Hi, Use JavaScript for that. Please check the JavaScript codes here: http://javascript.internet.com/forms/country-state-drop-down.html http://javascript.internet.com/forms/dynamic-drop-down-list.html Call the function in Attribute Collections, like DropDownList1.Attributes.Add("OnClick",....); Hope this helps.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.