Showing posts with label validators. Show all posts
Showing posts with label validators. Show all posts

Wednesday, March 28, 2012

Successful validation still blocks postback

Hello,

I have an ASP.NET site that uses validators on a couple pages. On our
staging servers, the site works properly. When I deploy it to the live
server, however, the pages that have validators will not postback. The
validators do appear to be working properly--they show me an error if
the field is empty, and not if it isn't. I saved the generated HTML
from the staging server and the live server, and discovered that there
were a couple differences in the Javascript code related to validation.
I saved the HTML from the live server, and changed code line-by-line,
and eventually wound up with a page that would postback. So the issue
seems to be the generated HTML.

The staging and live servers are both running Win 2k3, IIS 6, .NET
Framework v1.1.4322. The live server does have an older version of .NET
Framework installed. The properties of the site in IIS are set to
process .aspx pages with the v1.1.4322 dll. The WebUIValidation.js file
appears to be in all the right places. The hosting company re-ran
aspnet_regiis.exe, which has cured mysterious ailments in the past.

Has anybody seen anything like this? Any ideas?

ThanksIts probably the bug in ASP.NET 1.1 SP 1. See this thread:
http://forums.asp.net/739537/ShowPost.aspx

-- Peter Blum
www.PeterBlum.com
Email: PLBlum@.PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

<nospamforjoel@.yahoo.com> wrote in message
news:1118757786.746135.236060@.g44g2000cwa.googlegr oups.com...
> Hello,
> I have an ASP.NET site that uses validators on a couple pages. On our
> staging servers, the site works properly. When I deploy it to the live
> server, however, the pages that have validators will not postback. The
> validators do appear to be working properly--they show me an error if
> the field is empty, and not if it isn't. I saved the generated HTML
> from the staging server and the live server, and discovered that there
> were a couple differences in the Javascript code related to validation.
> I saved the HTML from the live server, and changed code line-by-line,
> and eventually wound up with a page that would postback. So the issue
> seems to be the generated HTML.
> The staging and live servers are both running Win 2k3, IIS 6, .NET
> Framework v1.1.4322. The live server does have an older version of .NET
> Framework installed. The properties of the site in IIS are set to
> process .aspx pages with the v1.1.4322 dll. The WebUIValidation.js file
> appears to be in all the right places. The hosting company re-ran
> aspnet_regiis.exe, which has cured mysterious ailments in the past.
> Has anybody seen anything like this? Any ideas?
> Thanks

Monday, March 26, 2012

Suggestion for next release of 2.0 - ValidationSummary Control

Hi Guys,

I have a feature request for 2.x or 3.x. How about we have the option
to let the ValidationSummary display messages from all validators on
the page? For instance, maybe we can have an additional property
"DisplayAllValidators."

Or maybe you can just modify the ValidationGroup property on the
summary control to work like this:
1. Undefined - Summarize all undefined Validators ignoring those with a
defined group
2. Defined - Summarize only the specified group's validators
3. All - Summarize every validator on the page (including those in user
controls)

That would be nice!

Forcing us to place multiple summary controls for each group on a page
is pretty lame. Allowing us the ability is nice...you could also just allow us to enter comma delimited Groups. I still
like my first suggestion better but at least that would solve my
problem.
re:

Quote:

Originally Posted by

I have a feature request for 2.x or 3.x.


Please submit that request at the Visual Studio
and .NET Framework Feedback page :

http://connect.microsoft.com/feedba...aspx?SiteID=210
Click on the "Submit Feedback" link and make sure you have a Microsoft Passport
handy so you can login, which is required in order to be able to submit requests and bugs.

If you don't have a Passport, get a free one here :
https://accountservices.passport.ne...?vv=410&lc=1033
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"r2thej151" <csharpdesign@.gmail.comwrote in message
news:1155851585.512982.134980@.i3g2000cwc.googlegro ups.com...

Quote:

Originally Posted by

Hi Guys,
>
I have a feature request for 2.x or 3.x. How about we have the option
to let the ValidationSummary display messages from all validators on
the page? For instance, maybe we can have an additional property
"DisplayAllValidators."
>
Or maybe you can just modify the ValidationGroup property on the
summary control to work like this:
1. Undefined - Summarize all undefined Validators ignoring those with a
defined group
2. Defined - Summarize only the specified group's validators
3. All - Summarize every validator on the page (including those in user
controls)
>
That would be nice!
>
Forcing us to place multiple summary controls for each group on a page
is pretty lame. Allowing us the ability is nice...
>


thanks for the link. it is already filed and open.