Hi...
M working with ListBox Control in aspx.cs.
Can AnyOne help me out regarding....How to ensure that atleast one item gets selected in a listbox before button click event gets fired when button is clicked???
Thanks in Advance.....
willopt_ric 0 Newbie Poster
Recommended Answers
Jump to Posthi..
If ListBox1.SelectedIndex < 0 Then Exit Sub End If
Jump to Posthi..
If ListBox1.SelectedIndex < 0 Then Exit Sub End If
yeah.....but mine is c#......
so do u mean that i need to exit from the button click event???
How??/If you don't use "exit sub", it will continue until "End Sub"
but, at least, you can give a …
All 7 Replies
kvprajapati 1,826 Posting Genius Team Colleague
willopt_ric 0 Newbie Poster
kvprajapati 1,826 Posting Genius Team Colleague
willopt_ric 0 Newbie Poster
Kusno 0 Junior Poster
willopt_ric 0 Newbie Poster
Kusno 0 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.