elements not loaded before RegisterStartupScript
- From: Crazy Cat <danbredy@xxxxxxxxxxx>
- Date: Fri, 24 Aug 2007 15:19:34 -0700
In the page load event of my user control I create and register a
startup script with RegisterStartupScript. I am passing two controls
(using the ClientID property of the controls) into a function in the
startup script and I get
an undefined error on one of them (an image control) while the other
(a div) is found with no problem. Additionally even
if I comment out all references to the undefined control (except the
in the argument list for the function) I get the undefined error and
the function does not run. What the hell -- why should it stop with an
undefined argument if the argument is not used?
Please HELP!!!!
.
- Follow-Ups:
- Re: elements not loaded before RegisterStartupScript
- From: Muhammad Naveed Yaseen
- Re: elements not loaded before RegisterStartupScript
- Prev by Date: Validation Focus is too close
- Next by Date: Re: Moving existing application from using Session State InProc to SQL
- Previous by thread: Validation Focus is too close
- Next by thread: Re: elements not loaded before RegisterStartupScript
- Index(es):
Relevant Pages
|