473,657 Members | 2,921 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ValidationSumma ry issue

Hi,
I have some validations on a page, some of them are CustomValidatio n
which will go to server to do some complex logic.
I set the ValidationSumma ry.ShowMessageB ox = true, but message box won't
popup. After I do a research over net, I found it is a bug from MS. Anybody
has good work-around? I know I can loop through each validation control to
check statuses of them, then build a JavaScript to register on client side.
Any better idea?
Thanks!

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy
Nov 18 '05 #1
9 6789
Did you ever find a solution?

"Hardy Wang" wrote:
Hi,
I have some validations on a page, some of them are CustomValidatio n
which will go to server to do some complex logic.
I set the ValidationSumma ry.ShowMessageB ox = true, but message box won't
popup. After I do a research over net, I found it is a bug from MS. Anybody
has good work-around? I know I can loop through each validation control to
check statuses of them, then build a JavaScript to register on client side.
Any better idea?
Thanks!

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy

Nov 18 '05 #2
Just found this post from JustMe:

Microsoft confirmed to me that this IS a bug. There will not be a
quickfix, so you have to use one of the workarounds mentioned at
http://khsw.blogspot.com/2004/09/bug...idator_07.html

"Hardy Wang" wrote:
Hi,
I have some validations on a page, some of them are CustomValidatio n
which will go to server to do some complex logic.
I set the ValidationSumma ry.ShowMessageB ox = true, but message box won't
popup. After I do a research over net, I found it is a bug from MS. Anybody
has good work-around? I know I can loop through each validation control to
check statuses of them, then build a JavaScript to register on client side.
Any better idea?
Thanks!

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy

Nov 18 '05 #3
Actually, this link is pretty much useless since it does not directly address
the issue.

"Steven Burton" wrote:
Just found this post from JustMe:

Microsoft confirmed to me that this IS a bug. There will not be a
quickfix, so you have to use one of the workarounds mentioned at
http://khsw.blogspot.com/2004/09/bug...idator_07.html

"Hardy Wang" wrote:
Hi,
I have some validations on a page, some of them are CustomValidatio n
which will go to server to do some complex logic.
I set the ValidationSumma ry.ShowMessageB ox = true, but message box won't
popup. After I do a research over net, I found it is a bug from MS. Anybody
has good work-around? I know I can loop through each validation control to
check statuses of them, then build a JavaScript to register on client side.
Any better idea?
Thanks!

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy

Nov 18 '05 #4
Here is a work-around.
Add following JavaScript in the bottom of the html tag.
<Script Language=JavaSc ript>
<!--
ValidationSumma ryOnSubmit();
//-->
</Script

User submitted from AEWNET (http://www.aewnet.com/)
Nov 19 '05 #5
I don't know if it's a bug of .Net Framework, but I found a work-around:
Just add following Javascript in the buttom of the .aspx page.
<script LANGUAGE="Javas cript">
<!--
ValidationSumma ryOnSubmit();
//-->
</script>

Let me know if it does solve this issue.

"Steven Burton" <St**********@d iscussions.micr osoft.com> wrote in message
news:16******** *************** ***********@mic rosoft.com...
Actually, this link is pretty much useless since it does not directly address the issue.

"Steven Burton" wrote:
Just found this post from JustMe:

Microsoft confirmed to me that this IS a bug. There will not be a
quickfix, so you have to use one of the workarounds mentioned at
http://khsw.blogspot.com/2004/09/bug...idator_07.html

"Hardy Wang" wrote:
Hi,
I have some validations on a page, some of them are CustomValidatio n which will go to server to do some complex logic.
I set the ValidationSumma ry.ShowMessageB ox = true, but message box won't popup. After I do a research over net, I found it is a bug from MS. Anybody has good work-around? I know I can loop through each validation control to check statuses of them, then build a JavaScript to register on client side. Any better idea?
Thanks!

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy

Nov 19 '05 #6
This solution results in a JavaScript "Object Expected" Error.

Thanks anyway.

"redhair" wrote:
I don't know if it's a bug of .Net Framework, but I found a work-around:
Just add following Javascript in the buttom of the .aspx page.
<script LANGUAGE="Javas cript">
<!--
ValidationSumma ryOnSubmit();
//-->
</script>

Let me know if it does solve this issue.

"Steven Burton" <St**********@d iscussions.micr osoft.com> wrote in message
news:16******** *************** ***********@mic rosoft.com...
Actually, this link is pretty much useless since it does not directly

address
the issue.

"Steven Burton" wrote:
Just found this post from JustMe:

Microsoft confirmed to me that this IS a bug. There will not be a
quickfix, so you have to use one of the workarounds mentioned at
http://khsw.blogspot.com/2004/09/bug...idator_07.html

"Hardy Wang" wrote:

> Hi,
> I have some validations on a page, some of them are CustomValidatio n > which will go to server to do some complex logic.
> I set the ValidationSumma ry.ShowMessageB ox = true, but message box won't > popup. After I do a research over net, I found it is a bug from MS. Anybody > has good work-around? I know I can loop through each validation control to > check statuses of them, then build a JavaScript to register on client side. > Any better idea?
>
>
> Thanks!
>
> --
> WWW: http://hardywang.1accesshost.com
> ICQ: 3359839
> yours Hardy
>
>
>


Nov 19 '05 #7
A workaround that does seem to be effective is to place the following code
inside the form tag:

<script language="javas cript" type="text/javascript"
src="/aspnet_client/system_web/1_1_4322/WebUIValidation .js"></script>

The problem with this solution is that the version is hard-coded.
"redhair" wrote:
I don't know if it's a bug of .Net Framework, but I found a work-around:
Just add following Javascript in the buttom of the .aspx page.
<script LANGUAGE="Javas cript">
<!--
ValidationSumma ryOnSubmit();
//-->
</script>

Let me know if it does solve this issue.

"Steven Burton" <St**********@d iscussions.micr osoft.com> wrote in message
news:16******** *************** ***********@mic rosoft.com...
Actually, this link is pretty much useless since it does not directly

address
the issue.

"Steven Burton" wrote:
Just found this post from JustMe:

Microsoft confirmed to me that this IS a bug. There will not be a
quickfix, so you have to use one of the workarounds mentioned at
http://khsw.blogspot.com/2004/09/bug...idator_07.html

"Hardy Wang" wrote:

> Hi,
> I have some validations on a page, some of them are CustomValidatio n > which will go to server to do some complex logic.
> I set the ValidationSumma ry.ShowMessageB ox = true, but message box won't > popup. After I do a research over net, I found it is a bug from MS. Anybody > has good work-around? I know I can loop through each validation control to > check statuses of them, then build a JavaScript to register on client side. > Any better idea?
>
>
> Thanks!
>
> --
> WWW: http://hardywang.1accesshost.com
> ICQ: 3359839
> yours Hardy
>
>
>


Nov 19 '05 #8
Since the ValidationSumma ryOnSubmit() is a built-in function from the
WebUIValidation .js
The system should place the Javascript block automatically based on which
version .Net Framework
was registered and mapped to IIS, if not, the browser will pop up a window
to show following message:
Unable to find script library
'/aspnet_client/system_web/1_1_4322/WebUIValidation .js'. Try placing this
file manually, or reinstall by running 'aspnet_regiis -c'.
"Steven Burton" <St**********@d iscussions.micr osoft.com> wrote in message
news:AF******** *************** ***********@mic rosoft.com...
A workaround that does seem to be effective is to place the following code
inside the form tag:

<script language="javas cript" type="text/javascript"
src="/aspnet_client/system_web/1_1_4322/WebUIValidation .js"></script>

The problem with this solution is that the version is hard-coded.
"redhair" wrote:
I don't know if it's a bug of .Net Framework, but I found a work-around:
Just add following Javascript in the buttom of the .aspx page.
<script LANGUAGE="Javas cript">
<!--
ValidationSumma ryOnSubmit();
//-->
</script>

Let me know if it does solve this issue.

"Steven Burton" <St**********@d iscussions.micr osoft.com> wrote in message news:16******** *************** ***********@mic rosoft.com...
Actually, this link is pretty much useless since it does not directly

address
the issue.

"Steven Burton" wrote:

> Just found this post from JustMe:
>
> Microsoft confirmed to me that this IS a bug. There will not be a
> quickfix, so you have to use one of the workarounds mentioned at
> http://khsw.blogspot.com/2004/09/bug...idator_07.html
>
>
>
> "Hardy Wang" wrote:
>
> > Hi,
> > I have some validations on a page, some of them are

CustomValidatio n
> > which will go to server to do some complex logic.
> > I set the ValidationSumma ry.ShowMessageB ox = true, but message
box won't
> > popup. After I do a research over net, I found it is a bug from
MS. Anybody
> > has good work-around? I know I can loop through each validation

control to
> > check statuses of them, then build a JavaScript to register on
client side.
> > Any better idea?
> >
> >
> > Thanks!
> >
> > --
> > WWW: http://hardywang.1accesshost.com
> > ICQ: 3359839
> > yours Hardy
> >
> >
> >


Nov 19 '05 #9

Hardy Wang wrote:
*Hi,
I have some validations on a page, some of them are CustomValidatio n
which will go to server to do some complex logic.
I set the ValidationSumma ry.ShowMessageB ox = true, but message box
won't
popup. After I do a research over net, I found it is a bug from MS.
Anybody
has good work-around? I know I can loop through each validation
control to
check statuses of them, then build a JavaScript to register on client
side.
Any better idea?
Thanks!

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy *


--
johanngunn
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
378
by: newusertodotnet | last post by:
I'm trying to add a ValidationSummary control to a common base page used by all of our system's aspx/ascx files. The base page is a regular class file that inherits from System.Web.UI.Page. When I debug the application and click the submit button with a data element that fails a validation, I get the correct ValidationSummary messageBox, but I then receive the following error in WebUIValidation.js ValidationSummaryOnSubmit(): Microsoft...
0
1986
by: John Mabbott | last post by:
Hello all, We're getting some weird behavior with the ValidationSummary control. If I submit a page that fires some validators, the ValidationSummary displays them correctly. However, if I subsequently submit the page, the ValidationSummary control briefly disappears before re-appearing again! So, to recap: 1. I load one of my pages 2. I don't fill any of the input boxes and submit the page, causing
1
1233
by: Mr. x | last post by:
Hello, 1) I need to do ValidationSummary once : only on CustomValidator, and second only for RequiredFieldValidator (I have both CustomValidator and RequiredFieldValidator on my aspx page), please. 2) I need that when ValidationSummary is false - not to perform the task under the button. (I have something like : <asp:Button text = "send" runat="server" onClick = "sendContactMessage" />
3
4955
by: Christer | last post by:
Hi all! I recently created a MessageBox webcontrol for asp.net. This can be used as is, but I also want to take ude of it in other webcontrols. Right now i creating a ValidationSummary control, that makes use of my messagebox to show the summary of failing validators. So far I've been successfull achieving this. However, the serverside nature of the MessageBox currently forces all validators (and the validationsummary) to have...
2
2428
by: Sunil Sabir | last post by:
Dear All, I am using ValidationSummary,RequiredField Validator and Regular Expression Validator in my ASP.net form. I want to display error messages only in the ValidationSummary Control. But when I run the form the messages are displayed ValidationSummary,RequiredField Validator and Regular Expression Validator together . Is it possible that the message is displayed only in ValidationSummary control and not in RequiredFieldValidator...
1
2446
by: Dan Sikorsky | last post by:
I'm using SmartNavigation and need to automatically scroll to the top of the page when the ValidationSummary control catches errors and displays them, so that the user can see the errors without having to manually scroll to the top. How can I determine if the ValidationSummary will display errors so that I can issue a javascript window.scrollTo(0,0) or document.body.scrollTop = 0 (or something more appropriate) to automatically scroll to...
5
3670
by: john.livermore | last post by:
I am successfully using the client side validation controls, but there are a couple aspects of their behavior that I wish to modify. I cannot see how to accomplish this through the properties, but I thought I would ask here for advice. - ValidationSummary When there are validation errors on the page, the summary control displays its HeaderText at the top of my form. However, it lists each validation problem. Additionally each error...
1
3910
by: Ken Varn | last post by:
If a page has multiple ValidationSummary controls, how does it distinguish which ValidationControls are associated with which ValidationSummary controls? The reason I am asking this is that I want to display a Message Box for the validation message on my Validation controls. My validation control is embedded within a custom server control. If my custom server control adds a ValidationSummary control, I am afraid that it may conflict...
2
1876
by: PeterKellner | last post by:
I'm wanting to just show the error in a ValidationSummary control, not next to the actual TextField I'm putting a RequiredFieldValidator next to. I don't even want the little "*" showing which field it is. (strange requirement, but that's the way it is). I've found that if I set the attribute Text="" (zero length string), it always uses the ErrorMessage instead of Text. I need the ErrorMessage because that is what is going to show up...
0
8303
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8723
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8502
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8602
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4150
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.