Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my project i have a combobox includes product id,i am trying to open a grid view containing product details like product name,mrp,discount etc when i select any one of the product id from the combo box,but it just shows me the product id.pls help
Posted
Comments
Ankur\m/ 2-Jun-10 6:47am    
Your question is not clear enough to make me understand what you mean.
I will tell you what I got.
You have a GridView showing product details. You have a ComboBox containing product_id.
Now what? Do you want to display product details of only that particular product in the GridView. Yes or No. Please clarify.
William Winner 2-Jun-10 12:27pm    
I agree with Ankur...your question is not clear.

Are you saying that when you click in the combobox, you want a gridview to appear with the information? Where do you want it to appear? Or are you saying that when you mouse over an item in the combobox, you want the other information displayed to the user?
Yatin Bhagat 3-Jun-10 5:11am    
i have a combobox containing product id,what i am trying is when i select product id from the combobox i want to display that product details in the grid view.

1 solution

Hai

u use combobox include prodect ids..

u will click combobox u write code in selectindexchange event ..
give postback url true .. in that block u write code for gridview depending on the productid..

for ex :

select prdid,mrp from product where prdid='"+dropdownlist1.selecteditem.text+"'";
 
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