CoolDev2014
asked on
asp.net findcontrol
inside Wizard1_FinishButtonClick event,
how can I find a value from chkAdd control? The checkbox may be checked by the user. 1 or many.
How to get the list of selected value?
Thanks
<asp:Wizard DisplaySideBar="false" CssClass="form-group" Width="1200px" ID="Wizard1" runat="server" onfinishbuttonclick="Wizar d1_FinishB uttonClick ">
<WizardSteps>
<asp:WizardStep ID="WizardStep1" Title="1" runat="server" />
<asp:WizardStep ID="WizardStep3" Title="2" runat="server">
<asp:DataList runat="server" ID="amenityList" RepeatColumns="5" RepeatDirection="Horizonta l">
<ItemTemplate>
<asp:Label Width="160px" runat="server" ID="lblItemDescription" Text='<%# Eval("Description") %>'></asp:Label>
<asp:CheckBox runat="server" ID="chkAdd" Checked="true" />
</ItemTemplate>
</asp:DataList>
</asp:WizardStep>
</WizardSteps>
how can I find a value from chkAdd control? The checkbox may be checked by the user. 1 or many.
How to get the list of selected value?
Thanks
<asp:Wizard DisplaySideBar="false" CssClass="form-group" Width="1200px" ID="Wizard1" runat="server" onfinishbuttonclick="Wizar
<WizardSteps>
<asp:WizardStep ID="WizardStep1" Title="1" runat="server" />
<asp:WizardStep ID="WizardStep3" Title="2" runat="server">
<asp:DataList runat="server" ID="amenityList" RepeatColumns="5" RepeatDirection="Horizonta
<ItemTemplate>
<asp:Label Width="160px" runat="server" ID="lblItemDescription" Text='<%# Eval("Description") %>'></asp:Label>
<asp:CheckBox runat="server" ID="chkAdd" Checked="true" />
</ItemTemplate>
</asp:DataList>
</asp:WizardStep>
</WizardSteps>
ASKER
I don't think your codes are working
Please post your HTML and code behind code for DataList binding
ASKER
u can just use the codes i posted. How your amenityList_ItemDataBound will possibly be working?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window
To get list of selected checkboxes, you can use some list and add checked values into that list.