Mobile Browser Redirects

ASP.NET

    Sponsored Links

    Next

  • 1. Where to get emulator from (web matrix)?
    Hi, I am using Web Matrix to develop some mobile pages. I am able to run the mobile pages successfully locally using IE. However, I want to see it run on a device or an emulator. Where can I find an emulator that works with web matrix? Any links on how to use it with web matrix? On the other hand, I tried uploading my mobile aspx files to my server at instaspace, but I keep getting this error: "Parser Error Message: Could not load the assembly 'Microsoft.Matrix.Framework.Mobile, Version=0.6.0.0, Culture=neutral, PublicKeyToken=6f763c9966660626'. Make sure that it is compiled before accessing the page." which I guess means that instaspace doesn't support mobile pages? Is there some place else on the web where I can upload my mobile pages for free and test? Thanks.
  • 2. ASP.NET Mobile problem on Windows Mobile 2003 IE devices
    Hello, Ie written a simple application that uses the System.Web.UI.MobileControls.List control. The ItemCommand event redirects to other mobile using RedirectToMobilePage. This works fine in IE6 and low level WAP mobiles however the link doesn work on Windows Mobile 2003 IE? Has anyone else seen this problem? Many thanks
  • 3. Mobile:ObjectList and Custom Pagination
    Hi, I've an ObjectList with a custom pagination, populated by an arraylist that takes data from a dataview. In the same form I've a textbox for a incremental search. If the user write some text in the textbox I must filter the dataview with the text, clear the objectlist and populate it with the new datasource. What I don't understand is if I must write code in the LoadItems of the ObjectList or before. If I want that after the digit of the text (and a click on a button) the LoadItems fires, I must write the "ObjectList.DataBind" code in the click of the button and also in the LoadItems after the costruction of the arraylist. If I do it all in the click of the button, I lost the utility of the LoadItems event for the pagination. Help me please!!! Thanks

Mobile Browser Redirects

Postby Cybersurfer » Tue, 20 Jun 2006 21:48:57 GMT

Hi All

I am creating both a WEB portal and a WAP portal. I want to redirect
mobile browsers to the WAP portal. I am using the <browserCaps> section
in the web.config file to check the user agent of the client App that is
requesting the page. This section of the configuration file is quite
large because of the numerous USER_AGENTS. The section of the
configuration file looks as follows

<browserCaps>
		<use var="HTTP_USER_AGENT" />
		<case match="AUDIOVOX">
			IsMobileDevice="true"
</case>
</browserCaps>

but now for every single <case></case> statement I have to put in the
IsMobileDevice = "true". Is it possible to do it as follows i.e. if it
matches any of the listed USER AGENTS

<browserCaps>
		<use var="HTTP_USER_AGENT" />
<case match="AUDIOVOX" />
		<case match="MOT-MPX200" />
		<case match="Mitsu" />
			IsMobileDevice="true"
</browserCaps>

I am just trying to make it easier for myself.

Thanks


-- 
{*filter*}surfer
------------------------------------------------------------------------
{*filter*}surfer's Profile:  http://www.**--****.com/ 
View this thread:  http://www.**--****.com/ 


Similar Threads:

1.ASp.net Mobile Forms authentication on Nokia Mobile Browser 4.0

Hi All

Ive written a portal mobile portal in vb.net that I want to secure to
only authenticated users. I am having great difficulty doing this, as
when I test in the nokia wap simulator 4.0 (most of the users will
have nokia browsers) I cant seem to store any state.

When I authenticate the user, NMB 4.0 doesnt reflect the persisted
information. THe web config file is set to not use cookies and the
state is persisted if I test it with a an actual nokia 6230(GPRS), the
open wave simulator and also normal IE browser. Any Help is
appreciated.

 (details of the authentication Im using is below):

Dim username As String = "RyanMalone"
        FormsAuthentication.Initialize()
        Dim strRole As String = AssignRoles(username)

        'The AddMinutes determines how long the user will be logged in
after leaving
        'the site if he doesn't log off.
        Dim fat As FormsAuthenticationTicket = New
FormsAuthenticationTicket(1, _
         username.ToString, DateTime.Now, _
         DateTime.Now.AddMinutes(1), False, strRole, _
         FormsAuthentication.FormsCookiePath)
        Response.Cookies.Add(New
HttpCookie(FormsAuthentication.FormsCookieName, _
         FormsAuthentication.Encrypt(fat)))
        Session("Telco") = "Optus"

2.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#:

((Form) 
(this.parent.page.FindControl("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!

Thanks, 

Martin

3.Redirecting in the mobile framework

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 
Response.Redirect()?

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.MobileControls.MobilePage.LoadPageStateFromPersistenceMedium()
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?

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.

Regards,
Sathish Kuamr K


5.Redirecting to mobile page give an unwanted message.

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

7. cannot redirect to mobile page

8. Response.Redirect from within a user control affects browser h



Return to ASP.NET

 

Who is online

Users browsing this forum: No registered users and 79 guest