ASP.NET 4 General DiscussionFor ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Hi
i want when no item selected after Submit show this message "Nothing Selected" what should i do ?
Thanks
Code:
Protected Sub Btnsub_Click(ByVal sender As Object, ByVal e As
lblresult.Text = "You Chose:<br/>"
Dim Lstitems As ListItem
For Each Lstitems In CheckBoxList1.Items
If Lstitems.Selected Then
lblresult.Text &= "<br/>" & Lstitems.Text & "<br/>"
End If
Next
End Sub