Redirecting in the mobile framework


    Sponsored Links


  • 1. Remove MobileListItem by value
    Hi! I'm trying to delete MobileListItem defined in .aspx page: <mobile:selectionlist id="List1" runat="server" selecttype="DropDown"> <item text="Some text" value="Item1" /> </mobile:selectionlist> I'm using Remove method: List1.Items.Remove("move"); or property Visible: List1.Items[0].Visible = false; But in both cases I didn't see any result. Can anybody help me?
  • 2. How to FTP via VPN to sites on different IP's ?
    Hi, The VPN works fine, but I want to FTP through the VPN so the connection is encrypted. The problem is each of my IIS sites has a real Internet address specified, w.x.y.z. So when the VPN comes up using a private IP, I can't connect to any of the FTP sites using the VPN server's IP, Could you give me specific directions how to deal with this? Thank you for your help.
  • 3. newbie needing a mobile hello world sample app.
    Hi everyone, I would like to start developing apps using ASP .Net mobile, but I do not know where to start. I need some kind of 'hello world' sample to get me going. I have explored some sites but haven't seen anything. Can anyone suggest a site with a sample?. Ideally, I would like something that detects the browser and sends the user to a regular page if it is a regular browser, or to a mobile page if it is a mobile browser. Thanks in advance. Carlos.

Redirecting in the mobile framework

Postby YW1uM3NpYQ » Fri, 21 Jul 2006 06:46:02 GMT

I'm using custom authentication and when redirecting I was handling it like 
any other non-mobile web app I've done before. I was using 
Response.Redirect(). Now I've noticed that there is a 
MobilePage.RedirectToMobilePage() method. Should I be using this instead of 

I was receiving the following error in my app:
"The page requires session state that is no longer available. Either the 
session has expired, the client did not send a valid session cookie, or the 
session state history size is too small. Try increasing the history size or 
session expiry limit."

Stack trace: at 
System.Web.UI.MobileControls.MobilePage.OnViewStateExpire(EventArgs e)
at System.Web.UI.Page.LoadAllState()
at System.Web.UI.Page.ProcessRequestMain(Boolean 
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I'm checking the Session state in the OnInit event so they should be 
redirected before this point. Also I read in the documentation for 
Response.Redirect() that in cookieless forms using the ~/ for the application 
root can cause new Sessions to be created which I was also doing. Do you 
think either or both of these could be the cause of my problem?

Similar Threads:

1.Any language or Tools or framework for mobile development that is supported by all Mobile Platforms

Hi All,

I just want to know is there any language or Tools or framework  for mobile 
development that is supported by all Mobile Platforms (Windows Mobile,Linux 
,Palm ,Brew ,Symbian ,Blackberry ,iPhone)

Pankaj Jain 

2.App Framework for Windows Mobile / Compact Framework

3.Problem Redirecting Mobile ASP pages

I currently have a mobile ASP page that uses and on load event to build part 
of the form and uses a custom control. I am after making my custom control 
such that when the user click on a button in it the browser is redirected to 
a differant page. 

normally I would do this using something like the following in C#:

("Form1"))).mobilepage.redirect("address", true);

However I have tried this and everything I can think of and I just can't get 
the page to redirect. I have had pages redirectiing when there is no code in 
the on load event. 

I have also tried using Page.Responce(), Server.Transfer. I even at one 
point tried using the session variables and passing redirect values back to 
that get executed by the parent forms on load method, although this didn't 
seem to work either. 

If anyone has any ideas they would be much appericated!



4.Redirecting Mobile Page to a different page and come back

Hi All,

We have a requirement that when a user comes to a particular web page from 
mobile, we have to redirect the user to some other page showing some other 
content after some specified time say 20-30 seconds come back to the 
original page requested.

Is that possible.

We tried to use the timer class. Could anyone provide code samples.

We are using ASP.NET 1.1 Mobile Pages in our Web application.

Thanks for your help and efforts.

Sathish Kuamr K

5.Redirecting to mobile page give an unwanted message.

6. Mobile Browser Redirects

7. cannot redirect to mobile page

8. Basic Q - Response.Redirect, all redirect to first Response.Redirect statement

Return to ASP.NET


Who is online

Users browsing this forum: No registered users and 68 guest