Re: RegisterStartupScript not executing script
From: Mike (Mike_at_discussions.microsoft.com)
Date: 10/05/04
- Next message: jobz: "Re: validators in panel"
- Previous message: Scott Allen: "Re: News Group Display"
- In reply to: Karl Seguin: "Re: RegisterStartupScript not executing script"
- Next in thread: bruce barker: "Re: RegisterStartupScript not executing script"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 5 Oct 2004 09:03:09 -0700
Karl,
I have already tried with "alert" but nothing is shown. I also used
breakpoints, and I am sure that the line of code is executed.
The postback is caused by a javascript refresh. I wonder whether this could
be the problem.
Mike
"Karl Seguin" wrote:
> There's nothing wrong with what you've shown us.
>
> The possibilities are an error in your javascript or simply your if
> expression is never evaluating to true.
>
> Try replacing showBothGrids(); with alert('test'); and see if that works
>
> Karl
>
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/
>
>
> "Mike" <Mike@discussions.microsoft.com> wrote in message
> news:1D65B463-6D02-409A-AB1E-C28FDC3DBDA6@microsoft.com...
> >
> > Hi,
> >
> > I am trying to resize a HTML table through Javascript. When the user
> control
> > loads the first time, the table is resized, but then it doesn't anymore. I
> am
> > using the following code in the Load event of the web user control:
> >
> > if ( [expression] )
> > this.Page.RegisterStartupScript("CallBothGrids", "<script
> > language=javascript> { showBothGrids(); }</script>");
> > else
> > this.Page.RegisterStartupScript("CallFundsOnly", "<script
> > language=javascript> { showFundsOnly(); }</script>");
> >
> > The "CallFundsOnly is executed (the first time), but the "CallBothGrids"
> is
> > not. I don't see any error message when the page is rendered in Internet
> > Explorer.
> > Any idea of what could be wrong?
> >
> > Thanks.
> > Mike
> >
> >
>
>
>
- Next message: jobz: "Re: validators in panel"
- Previous message: Scott Allen: "Re: News Group Display"
- In reply to: Karl Seguin: "Re: RegisterStartupScript not executing script"
- Next in thread: bruce barker: "Re: RegisterStartupScript not executing script"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|