Hi,
I have 2 dropdowns in a page, the 1st dropdown drives the values of the 2nd dropdown. For example, if the user selects "Department" from the 1st dropdown it will pull from the tblDepartment table. Let's say, I have another one called Business Unit, if user selects this, I will pull from tblBusUnit table.
I found an example below:
http://www.webcodeexpert.com/2014/12/jquery-ajax-to-bind-aspnet-dropdownlist.html
How can I pass the dropdown value using the jquery and how does the server side code's parameter looks?
jQuery:
Do I add the value of the other dropdown like the blue text below (where ddlType contains Department, Business Unit and etc.)
Also, how the code would look when the value of ddlType changes, so that it calls the server to repopulate the value?
Server side:
And in the server, do I add the parameter string strType like below, so that I know exactly what value has been picked?
Please advice and your help would be greatly appreciated!