Hi guys,
I have a problem and i know there must be a solution for this as it is such
a basic common practice in asp.net development.
Scenario:
i have many webforms in a site, most with two different custom controls,
one is a login module, the other is a generic data entry module. When there
are no validation controls on the page there is no problem. But when the
the data entry module has validation controls, the login module triggers
the data entry module's validation.
Q: how can i get the login module not to trigger the validation? i found
a few solutions that basically advise to turn off clientside validation which
is not an option, as posting back just to return a validation error message
is bad a user experience and the developer should be shot on site. Any elegant
solutions?
I know that asp.net 2 will have validation groups to fix this poor design
flaw, but is there something that can be done now that will mimic validation
groups. Or am i just stuck with capturing the current focused input and setting
validation off/on accordingly. 3 2814
can you turn off causesvalidation for the login button?
"john morales" <jmorales@NO_SPAM-gmail-R3M0VE_TH1S.com> wrote in message
news:22*********************@msnews.microsoft.com. .. Hi guys, I have a problem and i know there must be a solution for this as it is
such a basic common practice in asp.net development.
Scenario: i have many webforms in a site, most with two different custom controls, one is a login module, the other is a generic data entry module. When
there are no validation controls on the page there is no problem. But when the the data entry module has validation controls, the login module triggers the data entry module's validation.
Q: how can i get the login module not to trigger the validation? i found a few solutions that basically advise to turn off clientside validation
which is not an option, as posting back just to return a validation error
message is bad a user experience and the developer should be shot on site. Any
elegant solutions?
I know that asp.net 2 will have validation groups to fix this poor design flaw, but is there something that can be done now that will mimic
validation groups. Or am i just stuck with capturing the current focused input and
setting validation off/on accordingly.
Hello Shaun,
yes. thanks that would work. can you turn off causesvalidation for the login button?
"john morales" <jmorales@NO_SPAM-gmail-R3M0VE_TH1S.com> wrote in message news:22*********************@msnews.microsoft.com. ..
Hi guys, I have a problem and i know there must be a solution for this as it is such
a basic common practice in asp.net development.
Scenario: i have many webforms in a site, most with two different custom controls, one is a login module, the other is a generic data entry module. When there
are no validation controls on the page there is no problem. But when the the data entry module has validation controls, the login module triggers the data entry module's validation.
Q: how can i get the login module not to trigger the validation? i found a few solutions that basically advise to turn off clientside validation which
is not an option, as posting back just to return a validation error message
is bad a user experience and the developer should be shot on site. Any elegant
solutions?
I know that asp.net 2 will have validation groups to fix this poor design flaw, but is there something that can be done now that will mimic validation
groups. Or am i just stuck with capturing the current focused input and setting
validation off/on accordingly.
John, "validation groups" is built into "Professional Validation And More"
( http://www.peterblum.com/vam/home.aspx) along with many other tools that
Microsoft is not putting into ASP.NET 2.0 but are common validation issues.
--- Peter Blum www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at http://www.peterblum.com/vam/home.aspx
"john morales" <jmorales@NO_SPAM-gmail-R3M0VE_TH1S.com> wrote in message
news:24*********************@msnews.microsoft.com. .. Hello Shaun,
yes. thanks that would work.
can you turn off causesvalidation for the login button?
"john morales" <jmorales@NO_SPAM-gmail-R3M0VE_TH1S.com> wrote in message news:22*********************@msnews.microsoft.com. ..
Hi guys, I have a problem and i know there must be a solution for this as it is such
a basic common practice in asp.net development.
Scenario: i have many webforms in a site, most with two different custom controls, one is a login module, the other is a generic data entry module. When there
are no validation controls on the page there is no problem. But when the the data entry module has validation controls, the login module triggers the data entry module's validation.
Q: how can i get the login module not to trigger the validation? i found a few solutions that basically advise to turn off clientside validation which
is not an option, as posting back just to return a validation error message
is bad a user experience and the developer should be shot on site. Any elegant
solutions?
I know that asp.net 2 will have validation groups to fix this poor design flaw, but is there something that can be done now that will mimic validation
groups. Or am i just stuck with capturing the current focused input and setting
validation off/on accordingly.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Shahar |
last post by:
hi
I have the following problem: I have two button, tow textboxes and two
RequiredFieldValidator controls, like that:
<form id="Form1" method="post" runat="server">
<asp:TextBox id="TextBox1"...
|
by: Paul |
last post by:
This is what I am trying to do
*********************************form1***********************
Control 1 required field validator 1
Control 2 required field validator 2
Submit button 1 (works...
|
by: Matt Mercer |
last post by:
Hi,
My first post here. I am a self-taught, very "green" web developer. It
is not the main focus of my job but required from time to time.
I am developing a web application that logs security...
|
by: Shankar Mani via DotNetMonster.com |
last post by:
Hi folks,
I am facing a problem while using a DataGrid.
I have a webform with a datagrid containing two text boxes for edit viz.,
countrycode and country name. Like wise I have two more text boxes...
|
by: David Colliver |
last post by:
Hi all,
I am having a slight problem that hopefully, someone can help me fix.
I have a form on a page. Many items on the form have validation controls
attached.
Also on this form are...
|
by: Kris |
last post by:
Hi,
I have a DataGrid where in each row has couple of text boxes and an
update button. Each row is dynamically generated as the number of rows
are not known ahead of time. When the user clicks the...
|
by: ibiza |
last post by:
Hi all,
I have a small question concerning asp.net 2.0 validation groups. I
have this (simplified) situation :
Name Value
_____ _____
|_____| |_____|
_____ _____...
|
by: misiek |
last post by:
Hi all.
I have following problem:
I have some user control called smallUserContrl, in which I have two
RangeValidator controls. I set their ValidationGroup property to
smallUserControlGroup.
...
|
by: brantman |
last post by:
Here is a question that needs to be revisited. I noticed that there are
more that a few posts about this in this group and in custom controls.
Here is the problem:
When inheriting from a...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |