Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2009-05-07
4
Medium Priority
?
363 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 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
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…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

783 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