|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
validation summary not always showing message boxerrors on the screen as well as a popup. If all validators are passed and execution goes to the server, on certain conditions, i will dynamically create a custom validator and add it to the form. The problem is, these always get shown in the val summ table, but no popup. looking at the other ones, the popup doesn't occur until the submit button is clicked. My dynamic validator is set to be false when the page returns to the client so that it is shown. Is there a way to get the popup window to appear? (i'm afraid with this implementation there's not) Thanks a bunch! // display error messages in custom validator CustomValidator cvValidationMessages = new CustomValidator(); cvValidationMessages.ID = "cvValidationMessages"; cvValidationMessages.CssClass = "validator"; cvValidationMessages.Display = ValidatorDisplay.None; cvValidationMessages.Text = "!"; cvValidationMessages.ErrorMessage = errorMessage; cvValidationMessages.IsValid = false; this.phCustomValidator.Controls.Add(cvValidationMessages); Hi TS,
We have reviewed this issue and are currently researching on it. We will update you ASAP. Thanks for your patience! Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights." Hi TS,
As for the dynamic added validtor not fire messageBox problem, based on my testing, it is a expected behavior due to the validtion summary's messagebox mechanism. Actually the validation summary's messageBox is displayed for those validtor control's clientside validating(which occur at clientside before we submit the page....), that's why you only see other validator's error message showed in messagebox only before we post back the page. Also, we can verify this by disabling other validator's clientsidescript, this will also make the messagebox not display after page postback and return .... So, I think for your custom validator, we may need to consider manually register some validation clientside script after we done serverside validting, so that it can raise a messagebox after the page is rendered out to client ...... Thanks, Steven Cheng Microsoft Online Support Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.) -------------------- | From: "TS" <manofsteele1@nospam.nospam> microsoft.public.dotnet.framework.aspnet.webcontrols:31514| Subject: validation summary not always showing message box | Date: Fri, 2 Dec 2005 15:33:13 -0600 | Lines: 31 | X-Priority: 3 | X-MSMail-Priority: Normal | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 | X-RFC2646: Format=Flowed; Original | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 | Message-ID: <e3y74f49FHA.2***@TK2MSFTNGP14.phx.gbl> | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols | NNTP-Posting-Host: 101nat080.tea.state.tx.us 198.214.101.80 | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl | Xref: TK2MSFTNGXA02.phx.gbl Show quoteHide quote | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols | | i have a form with val summ on it and most of the time it displays the | errors on the screen as well as a popup. If all validators are passed and | execution goes to the server, on certain conditions, i will dynamically | create a custom validator and add it to the form. The problem is, these | always get shown in the val summ table, but no popup. | | looking at the other ones, the popup doesn't occur until the submit button | is clicked. My dynamic validator is set to be false when the page returns to | the client so that it is shown. Is there a way to get the popup window to | appear? (i'm afraid with this implementation there's not) | | Thanks a bunch! | | // display error messages in custom validator | CustomValidator cvValidationMessages = new CustomValidator(); | | cvValidationMessages.ID = "cvValidationMessages"; | | cvValidationMessages.CssClass = "validator"; | | cvValidationMessages.Display = ValidatorDisplay.None; | | cvValidationMessages.Text = "!"; | | cvValidationMessages.ErrorMessage = errorMessage; | | cvValidationMessages.IsValid = false; | | this.phCustomValidator.Controls.Add(cvValidationMessages); | | | thank you all
Show quoteHide quote "Steven Cheng[MSFT]" <stch***@online.microsoft.com> wrote in message news:qwPNY7U%23FHA.1236@TK2MSFTNGXA02.phx.gbl... > Hi TS, > > As for the dynamic added validtor not fire messageBox problem, based on my > testing, it is a expected behavior due to the validtion summary's > messagebox mechanism. Actually the validation summary's messageBox is > displayed for those validtor control's clientside validating(which occur > at > clientside before we submit the page....), that's why you only see other > validator's error message showed in messagebox only before we post back > the > page. Also, we can verify this by disabling other validator's > clientsidescript, this will also make the messagebox not display after > page > postback and return .... > > So, I think for your custom validator, we may need to consider manually > register some validation clientside script after we done serverside > validting, so that it can raise a messagebox after the page is rendered > out > to client ...... > > Thanks, > > Steven Cheng > Microsoft Online Support > > Get Secure! www.microsoft.com/security > (This posting is provided "AS IS", with no warranties, and confers no > rights.) > > > > > -------------------- > | From: "TS" <manofsteele1@nospam.nospam> > | Subject: validation summary not always showing message box > | Date: Fri, 2 Dec 2005 15:33:13 -0600 > | Lines: 31 > | X-Priority: 3 > | X-MSMail-Priority: Normal > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 > | X-RFC2646: Format=Flowed; Original > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 > | Message-ID: <e3y74f49FHA.2***@TK2MSFTNGP14.phx.gbl> > | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols > | NNTP-Posting-Host: 101nat080.tea.state.tx.us 198.214.101.80 > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl > | Xref: TK2MSFTNGXA02.phx.gbl > microsoft.public.dotnet.framework.aspnet.webcontrols:31514 > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols > | > | i have a form with val summ on it and most of the time it displays the > | errors on the screen as well as a popup. If all validators are passed > and > | execution goes to the server, on certain conditions, i will dynamically > | create a custom validator and add it to the form. The problem is, these > | always get shown in the val summ table, but no popup. > | > | looking at the other ones, the popup doesn't occur until the submit > button > | is clicked. My dynamic validator is set to be false when the page > returns > to > | the client so that it is shown. Is there a way to get the popup window > to > | appear? (i'm afraid with this implementation there's not) > | > | Thanks a bunch! > | > | // display error messages in custom validator > | CustomValidator cvValidationMessages = new CustomValidator(); > | > | cvValidationMessages.ID = "cvValidationMessages"; > | > | cvValidationMessages.CssClass = "validator"; > | > | cvValidationMessages.Display = ValidatorDisplay.None; > | > | cvValidationMessages.Text = "!"; > | > | cvValidationMessages.ErrorMessage = errorMessage; > | > | cvValidationMessages.IsValid = false; > | > | this.phCustomValidator.Controls.Add(cvValidationMessages); > | > | > | > You're welcome TS,
Always feel free to post here when you need any assistance. Good luck! Steven Cheng Microsoft Online Support Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.) -------------------- | From: "TS" <manofsteele1@nospam.nospam> <qwPNY7U#FHA.1***@TK2MSFTNGXA02.phx.gbl>| References: <e3y74f49FHA.2***@TK2MSFTNGP14.phx.gbl> | Subject: Re: validation summary not always showing message box microsoft.public.dotnet.framework.aspnet.webcontrols:31544| Date: Mon, 5 Dec 2005 09:50:36 -0600 | Lines: 95 | X-Priority: 3 | X-MSMail-Priority: Normal | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 | X-RFC2646: Format=Flowed; Original | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 | Message-ID: <O9JEbOb#FHA.3***@TK2MSFTNGP14.phx.gbl> | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols | NNTP-Posting-Host: 101nat080.tea.state.tx.us 198.214.101.80 | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl | Xref: TK2MSFTNGXA02.phx.gbl Show quoteHide quote | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols | | thank you all | | "Steven Cheng[MSFT]" <stch***@online.microsoft.com> wrote in message | news:qwPNY7U%23FHA.1236@TK2MSFTNGXA02.phx.gbl... | > Hi TS, | > | > As for the dynamic added validtor not fire messageBox problem, based on my | > testing, it is a expected behavior due to the validtion summary's | > messagebox mechanism. Actually the validation summary's messageBox is | > displayed for those validtor control's clientside validating(which occur | > at | > clientside before we submit the page....), that's why you only see other | > validator's error message showed in messagebox only before we post back | > the | > page. Also, we can verify this by disabling other validator's | > clientsidescript, this will also make the messagebox not display after | > page | > postback and return .... | > | > So, I think for your custom validator, we may need to consider manually | > register some validation clientside script after we done serverside | > validting, so that it can raise a messagebox after the page is rendered | > out | > to client ...... | > | > Thanks, | > | > Steven Cheng | > Microsoft Online Support | > | > Get Secure! www.microsoft.com/security | > (This posting is provided "AS IS", with no warranties, and confers no | > rights.) | > | > | > | > | > -------------------- | > | From: "TS" <manofsteele1@nospam.nospam> | > | Subject: validation summary not always showing message box | > | Date: Fri, 2 Dec 2005 15:33:13 -0600 | > | Lines: 31 | > | X-Priority: 3 | > | X-MSMail-Priority: Normal | > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 | > | X-RFC2646: Format=Flowed; Original | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 | > | Message-ID: <e3y74f49FHA.2***@TK2MSFTNGP14.phx.gbl> | > | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols | > | NNTP-Posting-Host: 101nat080.tea.state.tx.us 198.214.101.80 | > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl | > | Xref: TK2MSFTNGXA02.phx.gbl | > microsoft.public.dotnet.framework.aspnet.webcontrols:31514 | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols | > | | > | i have a form with val summ on it and most of the time it displays the | > | errors on the screen as well as a popup. If all validators are passed | > and | > | execution goes to the server, on certain conditions, i will dynamically | > | create a custom validator and add it to the form. The problem is, these | > | always get shown in the val summ table, but no popup. | > | | > | looking at the other ones, the popup doesn't occur until the submit | > button | > | is clicked. My dynamic validator is set to be false when the page | > returns | > to | > | the client so that it is shown. Is there a way to get the popup window | > to | > | appear? (i'm afraid with this implementation there's not) | > | | > | Thanks a bunch! | > | | > | // display error messages in custom validator | > | CustomValidator cvValidationMessages = new CustomValidator(); | > | | > | cvValidationMessages.ID = "cvValidationMessages"; | > | | > | cvValidationMessages.CssClass = "validator"; | > | | > | cvValidationMessages.Display = ValidatorDisplay.None; | > | | > | cvValidationMessages.Text = "!"; | > | | > | cvValidationMessages.ErrorMessage = errorMessage; | > | | > | cvValidationMessages.IsValid = false; | > | | > | this.phCustomValidator.Controls.Add(cvValidationMessages); | > | | > | | > | | > | | |
VS2005 is a PIECE of Garbage and is bug Ridden
drop down list box - client side code won't execute OnSelectedIndexChange issues using webbrowser in a service DataGrid and ViewState Display an images in Datagrid Losing Session Values uniqueidentifier and updating record client side access. Lost with User Controls gridview.boundfield.dataformatstring doesn't work |
|||||||||||||||||||||||