locked
redirecttomobile page doesn`t work on mobiles RRS feed

  • Question

  • User1118074729 posted

    hi all

    i have a problem and wish to have some help,

    i have an application that makes custom authentication

    when user name and passowrd are authencicated user is redirected to default.aspx using : me.

    Me.RedirectToMobilePage("Defautl.aspx"

    but in default page when i try to redirect user to another page after clicking a command button

    i get an "error 500 status message 500 " if i redirect user to an aspx page and "error 405 status message 405 "if i redirect user to an html page

    everything works fine on IE and on Pocket pc 2003 but i have problems on mobile phones like motorolla siemens nokia

    i tried to debug it, the debugger works fine but it doesn`t load the targetted page

    note:  in config file i`m using :

    <httpRuntime useFullyQualifiedRedirectUrl="true"/>

    here is some code :

    Protected Sub btnLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLogin.Click

    If txtUsername.Text.Trim="" and txtPassword.Text.Trim="123" Then

    Session("ActiveUser") ="Amin"

    RedirectToMobilePage(_ReturnUrl, True)

    End If

    End Sub

     

    Protected Sub Command1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Command1.Click

    RedirectToMobilePage("Test.aspx")

    End Sub

    Tuesday, August 15, 2006 3:52 AM

All replies

  • User1118074729 posted

    hi all

    i have a problem and wish to have some help,

    i have an application that makes custom authentication

    when user name and passowrd are authencicated user is redirected to default.aspx using : me.

    Me.RedirectToMobilePage("Defautl.aspx"

    but in default page when i try to redirect user to another page after clicking a command button

    i get an "error 500 status message 500 " if i redirect user to an aspx page and "error 405 status message 405 "if i redirect user to an html page

    everything works fine on IE and on Pocket pc 2003 but i have problems on mobile phones like motorolla siemens nokia

    i tried to debug it, the debugger works fine but it doesn`t load the targetted page

    note:  in config file i`m using :

    <httpRuntime useFullyQualifiedRedirectUrl="true"/>

    here is some code :

    Protected Sub btnLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLogin.Click

    If txtUsername.Text.Trim="" and txtPassword.Text.Trim="123" Then

    Session("ActiveUser") ="Amin"

    RedirectToMobilePage(_ReturnUrl, True)

    End If

    End Sub

     

    Protected Sub Command1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Command1.Click

    RedirectToMobilePage("Test.aspx")

    End Sub

     

    i added a try and catch when redirecting and i catch an exception

    "{System.Threading.ThreadAbortException}"   ex.Message: Expression cannot be evaluated at this time."

    is it an IIS error or what ?

    please help

    Tuesday, August 15, 2006 4:15 AM