Click here to Skip to main content
15,910,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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>

<asp:DropDownList ID="DDrQuantity" runat="server" Width="100px">

<asp:DropDownList ID="DDrPrice" runat="server" Width="100px">



Posted
Updated 15-Nov-13 19:11pm
v2

1 solution

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[^]
 
Share this answer
 
Comments
Dixit Ashish 16-Nov-13 1:13am    
i have pasted my code plz check it out

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