I just did this and it worked in c#:
RedirectToMobilePage("Shipping.aspx");
it was located inside a text change event.
> I need to write some MobileUserControls that has a button and redirect to
> anywhere.
[quoted text clipped - 6 lines]
>
> Sara T.
Hi Sara,
You can try using the Server.Transfer Method and it has to work.
Or in the worst case, what I did in my application was, use a Global/Session
variable
and in different events I set the flag. Now in the Code (page Load etc) of
Mobile Page
where you include the UserControl you can check the Session Variable Flag
(True/False)
and then use the RedirectToMobilePage without any hassle.
Hope it helps
Manoj Matchado, MVP
> I need to write some MobileUserControls that has a button and redirect to
> anywhere.
[quoted text clipped - 6 lines]
>
> Sara T.
Anders Ryden - 21 Feb 2005 08:14 GMT
Your MobileUserControl should have a reference to the page it resides on,
the MobilePage property inherited by MobileControl
So you should be able to do it like this:
Me.MobilePage.RedirectToMobilePage("http://www.dotnetmonster.com/whatever")