My script is registered just after VIEWSTATE hidden value.
The reason I am doing so is ValidationSumma ry won't popup alert box if one
of the validator is server side (sadly, I have to go to server side). So I
am thinking of a walk-around. My idea is to build a function to detect each
validator's status, grab the error message of thoese invalid, I will
concatenate messages to form a JavaScript, then I register this script to
client.
But just as what I said above, this piece of code appears in top of HTML
code, probably because I am doing this in a ASCX control
(Page.RegisterC lientScriptBloc k). Until user click OK button of dialog, the
whole page will not show up, so I am thinking of moving this thing to
bottom, let page finished loading, then call JavaScript.
--
WWW:
http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:uM******** ******@TK2MSFTN GP09.phx.gbl...
Not sure why you feel the need to, but RegisterStartup Script puts the
script
just before the </form> tag.
--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"Hardy Wang" <ha*******@hotm ail.com> wrote in message
news:uh******** ******@TK2MSFTN GP10.phx.gbl... Hi,
By calling Page.RegisterCl ientScriptBlock , the JavaScript will be
generated right after VIEWSTATE hidden field. Is there a way I can
register my script to end of page instead beginning?
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy