not able to get selected values of checkboxlist in textbox

Posted by Priti2010 under ASP.NET on 10/19/2011 | Points: 10 | Views : 2277 | Status : [Member] | Replies : 1
i have used a textbox with a popup control extender and a panel with a checkboxlist
when ever i click on the checkbox the values are stored in table but i can't view that values on my textbox
code as follows:-<asp:TextBox ID="txtCombo" runat="server" ReadOnly="true" >
<cc1:PopupControlExtender ID="PopupControlExtender1" runat="server"
TargetControlID="txtCombo" Position="Bottom"
PopupControlID="panel3" >


and my panel with checkbox is as follows:- <asp:Panel ID="panel3" runat="server" ScrollBars="Vertical" BorderWidth="1" Width="140" BackColor="AliceBlue" BorderColor="Azure">
<asp:CheckBoxList ID="chkList" runat="server" CssClass="style6" Width="124" Height="15" OnSelectedIndexChanged="chkList_SelectedIndexChanged" >
<asp:ListItem>1
<asp:ListItem>2
<asp:ListItem>3
<asp:ListItem>4
<asp:ListItem>5
<asp:ListItem>6
<asp:ListItem>7
Kindly help me out where is my error exactly

Thanks & Regards
Priti



Responses

Posted by: Godly77 on: 10/20/2011 [Member] Starter | Points: 25

Up
0
Down
Try Below,

<asp:Panel ID="panel3" runat="server" ScrollBars="Vertical" BorderWidth="1" Width="140" BackColor="AliceBlue" BorderColor="Azure">
<asp:CheckBoxList ID="chkList" runat="server" CssClass="style6" Width="124" Height="15" OnSelectedIndexChanged="chkList_SelectedIndexChanged" >
<asp:ListItem Text="1" Value="1"></asp:ListItem>
<asp:ListItem Text="2" Value="2"></asp:ListItem>
<asp:ListItem Text="3" Value="3"></asp:ListItem>
<asp:ListItem Text="4" Value="4"></asp:ListItem>
<asp:ListItem Text="5" Value="5"></asp:ListItem>
<asp:ListItem Text="6" Value="6"></asp:ListItem>
<asp:ListItem Text="7" Value="7"></asp:ListItem>
.....
.....
...

Godly Mathew

Priti2010, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response