Solved

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

Posted on 2009-05-07
4
357 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

735 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