ASP.NET validation issue - DropDownList being populated dynamically on client
Posted
by Colin Jones
on Stack Overflow
See other posts from Stack Overflow
or by Colin Jones
Published on 2010-04-28T17:29:23Z
Indexed on
2010/04/28
17:47 UTC
Read the original article
Hit count: 318
I'm populating a DropDownList using JS on the client and validating with a RequiredFieldValidator.
This works fine on the client but the Page.IsValid consistently comes back false on the server.
Is this because the selected value wasn't in the DropDownList when it was first served to the page?
What's the easiest way around this? (I need to leave server validation turned on)
© Stack Overflow or respective owner