Ask a Question related to ASP.NET General, Design and Development.
-
Marina #1
Re: why doesn't JavaScript work in ASP.NET? / refreshing a page?
Client side javascript hasn't changed - so there is something wrong with
your javascript.
Try using a meta refresh tag to do the refresh.
<meta http-equiv="refresh" content="1000">
"Laszlo Szijarto" <lszijarto@nospam.mrdoc.cc> wrote in message
news:eCdwsc$PDHA.560@TK2MSFTNGP10.phx.gbl...to> Thank you in advance for your help.
>
> I have the following client-side script in the HTML of my .aspx page --
>
> <script language="javascript">
> setTimeOut('document.location=document.location',1 000);
> </script>
>
> I get an error "Object expected" by the JScript debugger.
>
> What the heck? I'm specifying this is JavaScript. Is this more Microsoft
> Anti-Trust nonsense?
>
> Can anyone help me?
>
> I'm trying to get a page to refresh every second. Is there a better way> do this in ASP.NET? I really only need to refresh a particular label's
> text.
>
> Thank you in advance,
> Laszlo
>
>
Marina Guest
-
Programmatically Refreshing the Page
One thing that I have often needed to do that I have been unable to find a way to do is refresh the page (basically do the same thing as pressing... -
refreshing page...
I have page that is opened in a small window and after a user submits the form on that page I want the window to close and then refresh the page... -
Refreshing a Page
I have a menu that calls a specific asp page and passes a variable data1page.asp?year=2001 where the value of the year variable is determined... -
Web Page Refreshing...
I was just wondering... Our company must use a web site for order information from one of our customers. They place an order on the web site and... -
Refreshing the page
I was wondering if there is any way through for instance getURL(), to refresh the current page? (Like the page the SWF is currently included on.)... -
Laszlo Szijarto #2
Re: why doesn't JavaScript work in ASP.NET? / refreshing a page?
OK, thank you, Marina,
I found my problem -- it should be setTimeout, not setTimeOut.
The latter works in IE, but I guess VS.NET enforces more strictly -- except
that when I typed the opening parenthesis, it showed the function prototype,
as if it understood setTimeOut( -- but I guess it was tricking me.
Thank you,
Laszlo
"Marina" <zlatkinam@nospam.hotmail.com> wrote in message
news:uTxBkf$PDHA.2248@TK2MSFTNGP11.phx.gbl...Microsoft> Client side javascript hasn't changed - so there is something wrong with
> your javascript.
>
> Try using a meta refresh tag to do the refresh.
>
> <meta http-equiv="refresh" content="1000">
>
> "Laszlo Szijarto" <lszijarto@nospam.mrdoc.cc> wrote in message
> news:eCdwsc$PDHA.560@TK2MSFTNGP10.phx.gbl...> > Thank you in advance for your help.
> >
> > I have the following client-side script in the HTML of my .aspx page --
> >
> > <script language="javascript">
> > setTimeOut('document.location=document.location',1 000);
> > </script>
> >
> > I get an error "Object expected" by the JScript debugger.
> >
> > What the heck? I'm specifying this is JavaScript. Is this more> to> > Anti-Trust nonsense?
> >
> > Can anyone help me?
> >
> > I'm trying to get a page to refresh every second. Is there a better way>> > do this in ASP.NET? I really only need to refresh a particular label's
> > text.
> >
> > Thank you in advance,
> > Laszlo
> >
> >
>
Laszlo Szijarto Guest



Reply With Quote

