Click here to Skip to main content
15,910,083 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am doing job related website now am created a job role category dropdown list the list is working through jquery and when i select functional area like..IT software in first dropdown the particular role is display on second dropdownlist..

eg dropdown 1 : IT- Software

dropdown 2 : Software developer,Designer etc

second option code is given below..options are created in jquery thats y u can show select option only.

i wanted store the second option text into sql server

XML
<select class="textbox3" type="text" id="drd_Preferred_Level" runat="server" onchange="hi_level(this);">
<option>-------------------------------Select----------------------------------</option>


</select>
Posted
Comments
JoCodes 20-Jan-14 4:17am    
Where are you exactly stuck ? Are able to show the related data on Dropdown 2? Or only storing the the selected value to the db part you are stuck?
Aravindba 20-Jan-14 4:20am    
hai ,u have only one role for each Functional area,and these are static one,it change(i.e hard coded or retrive data form database and bind both dropdown box).if it hard coded in code behind ,try dropdown selected index changed for firs dropdownlist.
Karthik_Mahalingam 20-Jan-14 4:27am    
what issue u r facing ???
question is not so clear...
please add more info...

hai ,u have only one role for each Functional area,and these are static one,it change(i.e hard coded or retrive data form database and bind both dropdown box).if it hard coded in code behind ,try dropdown selected index changed for firs dropdownlist.

like

if selectedindex=0 then
dropdown2.selected.text="First role"
elseif selectedindex=1 then
dropdown2.selected.text="Second role"
elseif........



Regards
Aravindb
 
Share this answer
 
So what you do is, you create an AJAX handler, or a postback, and you write code to store the value in your database. You need to actually try this before asking for help, we actually can't give you a copy and paste solution, we don't know your database structure, if you're using EF, if you're using stored procs, etc.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900