Solved

How to implement "NavigateURL" function in VB ASP.Net code

Posted on 2009-05-07
4
355 Views
Last Modified: 2012-05-06
This is a very newbie question. I'm a career programmer getting into ASP.Net programming. I hope you'll be kind. :)

I'm using Visual Web Developer to manage a web application with two forms: a main menu and a transaction form. I'm using Visual Basic and code-behind files. I have a menu object on the first form that calls the second form using the NavigateURL property of the menuitem object. I would like to add a button on the second form that takes me back to the menu form when work on the transaction form is done. I have an on-click event connected to the button.

How do I navigate back to the menu form from within the Visual Basic code-behind file?
0
Comment
Question by:jrollins138
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:mohan_sekar
ID: 24328576
you can do it on the client side - javascript:history.go(-1);
0
 

Author Comment

by:jrollins138
ID: 24328621
Will this still work if there have been multiple displays of the transaction page? I would prefer to reference the target page specifically by name ("menu.aspx").

Thanks.
0
 
LVL 15

Accepted Solution

by:
mohan_sekar earned 500 total points
ID: 24328988
if that's the case, try response.redirect("menu.aspx")
0
 

Author Comment

by:jrollins138
ID: 24329135
Success!

Exactly what I need. Thanks.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now