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 / March 2005

Tip: Looking for answers? Try searching our database.

Problem Redirecting Mobile ASP pages

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin - 22 Mar 2005 14:21 GMT
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
Nadav - 27 Mar 2005 07:07 GMT
Have you tried using
mobilepage.RedirectToMobilePage("address",true)

Nadav

> 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
[quoted text clipped - 20 lines]
>
> Martin
Martin - 28 Mar 2005 16:53 GMT
mobilepage.RedirectToMobilePage("address",true) does not work as user defined
control does not have a form as such. Instead the statement must be called on
the controls parent form, however this does not seem to fire correctly and
redirect the page as at the moment the page is not redirecting instead the on
load procedure of the form is still running.

> Have you tried using
> mobilepage.RedirectToMobilePage("address",true)
[quoted text clipped - 25 lines]
> >
> > Martin

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.