The initial Values specified is validated against the Text and not the Value Hope this helps It works perfectly for me.
All i did is 1) Added a ASP: Drop Down List 2) Added the collections with the default selected item with value "" and text "Select an Option" 3) Dragged a Required Field Validator 4) Set the Control to validate to the Drop Down List 5) Set the Initial Value as "Select an Option" 6) Voila it worked for me By using the Link Button and setting the Causes Validation to True, the client-side validation will prevent a form submission. However, this will not apply to downstream browsers. My GUESS is that it is the one that is causing the problem. Regards, Suraj b1xml2 , I have a code besides me that works that way. Can you kindly check it against some quick coding please. run this through some sort of debugger, or put some print out statements in the code? Maybe this information will give you a clue: I create a new, which loads in the dropdownlist. Do you click a button after selecting the user from the dropdown??
One of a set of tools we're offering as a way of saying thank you for being a part of the community.
User controls are a great way couple logic and XAML in an encapsulated way. A user control contrasts with a custom control in that a custom control contains no XAML. And though it says you may safely continue, it doesn’t continue safely at all. It means the binding target isn’t a dependency property!
Like this: In the code above we don’t set the data context of the user control, we set the data context of the first child in the user control. This one little workaround can save you dozens of hours pulling your hair.