Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 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

11 Experts available now in Live!

Get 1:1 Help Now