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