Solved

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

Posted on 2009-05-07
4
359 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

688 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