Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Mobile / February 2005

Tip: Looking for answers? Try searching our database.

How to redirect to another page from MobileUserControl

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sara T. - 09 Nov 2004 07:59 GMT
I need to write some MobileUserControls that has a button and redirect to
anywhere.

I found problem to call RedirectToMobilePage method in
MobileUserControl, because MobileUserControl is not inherited from
MobiePage.

Does anyone know how to redirect ?

Sara T.
Don Schilling - 09 Nov 2004 21:45 GMT
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.
ms - 03 Feb 2005 09:35 GMT
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")

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.