Home All Groups Group Topic Archive Search About

Refreshing an aspx mobile page in CSharp

Author
25 Mar 2005 7:42 PM
Chumley Walrus
I'm trying to either have a user hit a Refresh button to refresh a
mobile aspx (c-sharp behind code) page , or using an automatic refresh
every 3 minutes on the page. <META HTTP-EQUIV="Refresh"
CONTENT="180;url=mypage.aspx"> just does not work on any of my aspx
pages.
If I use a refresh button,  would I be able to use
Response.Redirect("selfPage") in my CSharp code behind with the Command
Button object?

Thanks
C

Author
25 Mar 2005 9:53 PM
Mohammad
In a very recent project, I needed an ASPX page to automatically
refresh itself to update its content every few minutes. I used Darren
Neimke's Timer control
(http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=69a7c7bb-939a-4777-aceb-2d9ebbe35b85),
and it worked like a charm. It triggers a postback event once a
preconfigured interval elapses.

But my application used regular, non-mobile ASPX page, so I'm not
totally sure if it would work for you.

Anyway, hope this helps.
Author
26 Mar 2005 3:03 AM
Peter Bromberg [C# MVP]
Have you tried Server.Transfer("thispage.aspx") ?
Saves a round trip to the device.
Peter

Show quote
"Chumley Walrus" <spring***@yahoo.com> wrote in message
news:1111779749.746441.249220@f14g2000cwb.googlegroups.com...
> I'm trying to either have a user hit a Refresh button to refresh a
> mobile aspx (c-sharp behind code) page , or using an automatic refresh
> every 3 minutes on the page. <META HTTP-EQUIV="Refresh"
> CONTENT="180;url=mypage.aspx"> just does not work on any of my aspx
> pages.
> If I use a refresh button,  would I be able to use
> Response.Redirect("selfPage") in my CSharp code behind with the Command
> Button object?
>
> Thanks
> C
>

AddThis Social Bookmark Button