Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > 2 validation groups problem

Reply
Thread Tools

2 validation groups problem

 
 
john morales
Guest
Posts: n/a
 
      12-13-2004
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.


 
Reply With Quote
 
 
 
 
Shaun Wilde
Guest
Posts: n/a
 
      12-13-2004
can you turn off causesvalidation for the login button?

"john morales" <jmorales@NO_SPAM-gmail-R3M0VE_TH1S.com> wrote in message
news:. ..
> 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.
>
>



 
Reply With Quote
 
 
 
 
john morales
Guest
Posts: n/a
 
      12-14-2004
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:. ..
>
>> 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.
>>



 
Reply With Quote
 
Peter Blum
Guest
Posts: n/a
 
      12-14-2004
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:
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:. ..
> 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:. ..
>>
>>> 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.
>>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Groups of groups with PIX. AM Cisco 2 01-31-2006 04:37 PM
match groups: optional groups not accessible david.reitter@gmail.com Python 3 06-10-2005 05:03 PM
getting values from URL such as http://groups.google.co.uk/groups?q=parameters+url+asp.net&start=10&hl=en&lr=& anonymous ASP .Net 1 05-08-2005 03:58 PM
Windows groups, VPN groups, and SecureACS John Sasso Cisco 0 10-02-2004 03:39 PM
Reading membership of groups (including nested groups) Petra Hübner ASP .Net 0 02-16-2004 07:07 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57