DataList中的DropDown [英] DropDown in DataList
本文介绍了DataList中的DropDown的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何在DataList中使用DropDown。
使用2下垂,在第一次下拉时选择的指数变化它反映在第二次下降下降..
PLZ给我解决方案..
thanx ..!
是这样的
< asp:DataList ID =dlContactsrunat =server RepeatLayout =TableRepeatColumns =3
CellPadding =2CellSpacing =2>
< itemtemplate>
< u> < asp:Literal ID =ChemicalNamerunat =serverText ='<%#DataBinder.Eval(Container.DataItem,ChemicalName)%>'> | ||
< asp:Image ID =Image1runat =serverWidth =120pxHeight =120pxImageUrl ='<%#Bind(Image,{0} )%>'/> | ||
目录编号: < ; asp:Literal ID =CatalogueNorunat =serverText ='<%#DataBinder.Eval(Container.DataItem,CatalogueNo)%>'> Cas No: < asp:Literal ID =CaseNorunat =serverText ='<%#DataBinder.Eval(Container.DataItem,CasNo )%>'> | ||
< asp:DropDownList ID =ddlWht1 runat =serverWidth =100px> < asp:ListItem> Killogram < asp:ListItem> Gram < asp:ListItem> Milligram < asp:ListItem> ;
|
解决方案
您好朋友,请参阅以下链接并阅读评论,它可能会让你对它有所了解。
http://vbcity.com/forums/t /147807.aspx [ ^ ]
How i can use DropDown in DataList.
am using 2 droop down, on selected index change in 1st drop down it reflect in second drop drop down..
plz give me solution..
thanx..!
did like this
<asp:DataList ID="dlContacts" runat="server" RepeatLayout="Table" RepeatColumns="3"
CellPadding="2" CellSpacing="2">
<itemtemplate>
<asp:Literal ID="ChemicalName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ChemicalName") %>'> | ||
<asp:Image ID="Image1" runat="server" Width="120px" Height="120px" ImageUrl='<%#Bind("Image","{0}") %>' /> | ||
Catalogue No: <asp:Literal ID="CatalogueNo" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "CatalogueNo") %>'> Cas No: <asp:Literal ID="CaseNo" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "CasNo") %>'> | ||
<asp:DropDownList ID="ddlWht1" runat="server" Width="100px"> <asp:ListItem>Killogram <asp:ListItem>Gram <asp:ListItem>Milligram <asp:ListItem>
|
解决方案
Hello friend, please refer the below link and read the comments, it might give you some idea about it.
http://vbcity.com/forums/t/147807.aspx[^]
这篇关于DataList中的DropDown的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文