2
shouts

dotNETspidor: Dropdownlist selected item validation fails: the suggestion

posted by sangam100sangam100 282 days, 18 hours, 18 minutes ago
Tuesday, June 02, 2009 12:54:28 PM GMT

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 ...

category: ASP.NET | clicked: 11 | | source: dotnetspidor.blogspot.com | show counter code
tags: ASP.NET, C#, dropdownlist, Validation

No comments yet, be the first one to post comment.

To post your comment please login or signup