TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
khaled ali
1.7k
47
646
how to use checkbox in datalist without select btn
Jan 15 2017 5:13 PM
hi all
i need help in this Scenario for use checkbox in datalist .
if i checked any checkbox in datalist will display in label or what ever you want
on other mean if i checked directly i see result in label then if checked another the result extend in that label.
i know how to use checkbox in datalist but with buttn click or select btn .
i do not need use any btn .
i know this case with button click or select link .
<table>
<tr>
<td>
<asp:DataList ID="DataList1" runat="server"
DataSourceID="SqlDataSource1">
<ItemTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" />
<br />
person_no:
<asp:Label ID="personnoLabel" runat="server" Text='<%# Eval("person_no") %>' />
<br />
person_name:
<asp:Label ID="nameLabel" runat="server" Text='<%# Eval("person_name") %>' />
<br />
Country_no:
<asp:Label ID="countrynoLabel" runat="server"
Text='<%# Eval("Country_no") %>' />
<br />
<br />
</ItemTemplate>
<SelectedItemTemplate>
label
</SelectedItemTemplate>
</asp:DataList>
</td>
<td>
</td>
</tr>
<tr>
<td>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:mydbConn %>"
SelectCommand="SELECT top(3) * FROM [anytable]"></asp:SqlDataSource>
<asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
Reply
Answers (
1
)
Controller gets null value
Need to Keep the Sub Menus Active after redirecting