Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have my sql table_names in my dropdownlist
while using insert command how should i write the query in .cs page

(in place of table names i need to write the selected drop down list item)
Posted
Comments
__TR__ 17-Sep-12 8:53am    
Use "YourdropdownlistID.selecteditem.text" to get the selected item in dropdown list.
darshith 17-Sep-12 9:04am    
working.....:-)

1 solution

insert into "+ddlTables.selecteditem.text+" values()..........
 
Share this answer
 
Comments
darshith 17-Sep-12 9:04am    
it helped me a lot thank u....
[no name] 17-Sep-12 9:14am    
then rate it....

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