Jump to content


  • Content Count

  • Joined

  • Last visited

Posts posted by Jorsh

  1. The error is in the foreach line of your DropDownList1_Changed function? And I'm guessing that you have tied this to the OnChange event for a dropdownlist on your page.It looks like the error is occurring because the DS is empty when you are calling that function as it is only being filled when you call the SearchButton_Click function.I think you'll need to add the "DS = minWebService()" line to your DropDownList1_Changed function. I think even though you are clicking on the Submit button before changing the dropdownlist, the DS is not filled unless you are calling the DS = minWebService() after the postback.

  2. Yeah, regular expressions are great for validating form input on web forms.^(\d{5}$|\d{5}-\d{4}$ would only match input that is in valid US zip code format.^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z]*[a-zA-Z]$ could be used to validate that the user entered in a correctly formated email address.There are many sites on the Internet devoted to regular expressions, I just think it'd be a great addition to this site.

  3. I love the site and refer 5 to 10 people per week to learn about HTML and CSS.One addition that I think would benefit many folks is a regex tutorial. I think with TryIt, W3Schools could be the premier site for learning about regular expressions.Thanks!

  • Create New...