Page_Validators is Undefined

  • Thread starter Thread starter Charleees
  • Start date Start date
C

Charleees

Hi all..

I have a Page ...

there are butttons namely button1.. button2.... as it...

each redirect to different page...

when i click button1 , and while the redirected page starts
loading......i click buutton2..

then i get the following error..

"Page_Validators is Undefined"

i have not used validators in both these pages...

namely button1-rdirectPage
and namely button2-rdirectPage

but i have used validators in my Project..

can any one help me...

Thanks in Advance

With Regards
Sanjay
 
Not sure why the particular page is causing an issue (support.microsoft.com
might have an answer), but you can sure avoid the issue altogether. Disable
the other buttons, client side, when one button is clicked. This will avoid
the problem.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
 
this is a design flaw with .net.

most of the validation code is rendered at the end of the page and with a
include file, so if you click a button before page is fully loaded, you get
scripting errors. if you want to fix this, the best workaround is render all
buttons disabled, then have client script enable the buttons (or any
autopostback controls) on the page load event. advanced hint: to handle
javascript disabled browsers, render javascript to disable the control right
after rendering the control.

-- bruce (sqlwork.com)
 
Back
Top