Click here to Skip to main content
15,906,625 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everybody

iwant to dispaly records in gridview based on combobox selected item and choose that respective item value from textbox

example
C#
if(combobox1.selecteditem=="eid")
selectedvalue=texbox1.text;
else if(combobox1.selecteditem=="enmae")
selectedvalue=textbox1.text;

i want to built my query like and my view like this

SQL
select eid=combobox1.selecteditem,enmae=combobox1.selecteditem from tbl1 where  eid=textbox1.text and enmae=textbox1.text



anybody give me example site or examples in c# coding plz...
Posted
Updated 10-Oct-11 21:36pm
v3
Comments
Bala Selvanayagam 11-Oct-11 8:09am    
Your question is not clear!!
hitech_s 17-Oct-11 7:12am    
your question is confusing plz modify the question through 'improve question' widget

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