如何绑定下拉列表中的值并生成click事件? [英] how can i bind value in dropdown and generate click event ?

查看:151
本文介绍了如何绑定下拉列表中的值并生成click事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从下拉列表中按类别制作搜索产品

所以
表详细信息
*****************
1)Tbl_Product

P_id(Pk)
Cat_id(Fk)
P_Name
********************
2)Tbl_Category

Cat_id(Pk)
猫名
********************
现在我放了一个DropDownlist
其中应显示类别名称的

现在,通过从DropDown中选择类别,我想从Tbl_Product
中为该类别选择产品 并绑定到View(any)中……

那我该怎么办.....
thnx

i want to make a search product by category from dropdown

so
Table Details
*****************
1) Tbl_Product

P_id(Pk)
Cat_id(Fk)
P_Name
********************
2) Tbl_Category

Cat_id(Pk)
Cat_Name
********************
now i put a one DropDownlist
in which name of category should be display

now, by selecting category from DropDown i want select Product for that category from Tbl_Product
and bind in in View(any)......

then how can i do it.....
thnx

推荐答案

您可以使用Cascading DropDownList完成此操作.

这是指导您的链接;

Ajax控件:级联DropDownList [
You can use Cascading DropDownList to accomplish this.

Here is the link that will guide you;

Ajax Control:Cascading DropDownList[^]

Good luck,
OI


这篇关于如何绑定下拉列表中的值并生成click事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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