checkboxlist selected value under edit mode

Posted by Self-Innovator under ASP.NET on 3/26/2013 | Points: 10 | Views : 1534 | Status : [Member] | Replies : 1
Hi
how can i dia\splay an checkboxlist selected value under edit mode


help

Join Hands Change lives
Thanks & Regards
Straight Edge Society



Responses

Posted by: Jayakumars on: 3/26/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Try this code

Client Side
==================
<asp:CheckBoxList ID="Chk11" runat ="server" >
<asp:ListItem Text ="AA" Value ="1"></asp:ListItem>
<asp:ListItem Text ="BB" Value ="2"></asp:ListItem>
<asp:ListItem Text ="CC" Value ="3"></asp:ListItem>
</asp:CheckBoxList>

<asp:Button ID="Bt1" runat ="server" Text ="Cheks" onclick="Bt1_Click" />

Server Side
================
protected void Bt1_Click(object sender, EventArgs e)
{
Chk11.SelectedValue = "2";
}

Mark as Answer if its helpful to you

Self-Innovator, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response