Click here to Skip to main content
15,921,989 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi There are two drop downlist in the front end of the screen.In the data base there is a table which has two columns as shown below.Node_Property and Property_value two columns in the table.
Node_Property Property_Value
Encryption On
Encryption Off
Node_Channel 14
Node_Channel 15
Beacon_Mode On

The table is called Node_Options
In the first dropdown list Node_property Should come and in the second dropdown list The corresponding value should come
Ex: If Encryption is selected only On and Off should be displayed in the second dropdown list.

Please give me an sql quiry for the above.The front end is ASP.NET.Back end coding is C#.

Regards,
Posted

1 solution

select Property_value from tablename where node_property='first dropdownlist selected item'


then bind property_value to your second dropdown list
 
Share this answer
 
v2
Comments
hitech_s 27-Aug-11 2:58am    
giv me feedback by leaving a comment
sandeepatil 27-Aug-11 3:05am    
ok there are five properties in the first dropdownlist.If the user selects different at different times.the we cant write perticular selected item in the dropdownlist. like
when Encryption is selected only on off should come or if node channel is selected then 14 and 15 should come.Bt above quiry restricted to one
selected item.
hitech_s 27-Aug-11 3:23am    
if u dont mind can u post the code what u have write

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