嵌套在组合框中的网格视图 [英] grid view nested within combobox

查看:104
本文介绍了嵌套在组合框中的网格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我有一个包含产品ID的组合框,当我从组合框中选择任何一个产品ID时,我试图打开一个包含产品详细信息(如产品名称,MRP,折扣等)的网格视图向我显示了产品id.pls help

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

推荐答案

Hai

您使用组合框包含产品ID.

您将单击组合框,然后在selectindexchange事件中编写代码.
在该代码段中给postback url true ..您要根据productid编写gridview的代码.

例如:

从产品中选择prdid,mrp,其中prdid =''"+ dropdownlist1.selecteditem.text +"'';
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+"''";


这篇关于嵌套在组合框中的网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆