|
 |
aspdotnet_website_programming thread: Web Form Validation
Message #1 by "Larkin Young" <youngld@j...> on Mon, 20 Jan 2003 03:57:18
|
|
This sort of concerns my last posting, dealing with asp.net page
templates. My situation is this: I have a siteheader control on the page
that has a login and signout button, which causes a postback when
clicked. I also have a member profile page that has several textboxes
that have requiredfieldvalidators associated with them, as well as a
textfield that requires a password to be entered for any changes to be
made to the user's profile. The problem arises when the user clicks the
Sign Out link, it cause the form validators to be raised if the user has
made any changes and if the password isn't entered. This is not a sreious
problem, but could cause some confusion for the users..can anyone offer a
sugggestion for how to have some sort of conditional to check what
control fired the postback event or some way around this problem?
Message #2 by "Austin" <alam@a...> on Wed, 29 Jan 2003 21:49:31
|
|
> This sort of concerns my last posting, dealing with asp.net page
t> emplates. My situation is this: I have a siteheader control on the page
t> hat has a login and signout button, which causes a postback when
c> licked. I also have a member profile page that has several textboxes
t> hat have requiredfieldvalidators associated with them, as well as a
t> extfield that requires a password to be entered for any changes to be
m> ade to the user's profile. The problem arises when the user clicks the
S> ign Out link, it cause the form validators to be raised if the user has
m> ade any changes and if the password isn't entered. This is not a
sreious
p> roblem, but could cause some confusion for the users..can anyone offer
a
s> ugggestion for how to have some sort of conditional to check what
c> ontrol fired the postback event or some way around this problem?
Solution--Select the link button on disign view and go the property of the
link button, then look for causevalidation and set it to either
true/false. If you set it to false the link button won't fire the
validation.
|
|
 |