Today I got across a question in the asp.net forum which seems simple but is still confusing for many beginners. So I am giving a place for it here:
Question:
Hi Everyone,
I'm trying to set some error handling by returning a message when a button is clicked and the user has not selected an item from the dropdown menu. I'm using this but for some reason it is being ignored?
protected void validatebtn_Click(object sender, ImageClickEventArgs e) { if (!(DropDownList1.SelectedValue ...
No comments yet, be the first one to post comment.