473,324 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

navigating between pages

zee
HELP!
Hi, I really need help navigating between pages in my web
application. When I press a button I want to go to a
particular page in my Visual Studio .net application.

Plase help
Thank you in advance
Zee
Nov 15 '05 #1
2 3324
Hi,

if your question is howto direct a user to another page if he presses a
button (not only in VS.NET) you have 2 choices.
1.) Drop a button on your webform. Double click this button. Write:
Response.Redirect("anotherpage.aspx", [optional:true]);
This will be handled on server side and you can check what ever you want.

2.) Create a HTML button with a onclick event.
<input ................. onclick="ToNewPage()">

insert the javascript function (ToNewPage) to redirect the user
<script language="javascript"
function ToNewPage(){
document.location.href = 'newpage.aspx';
}
</script>

You don't have to write a function for this. You can also do it like this:
onclick="javascript:document.location.href='newpag e.aspx'"

Hope this helps
Bjoern Wolfgardt
"zee" <zu******@cs.ufh.ac.za> schrieb im Newsbeitrag
news:07****************************@phx.gbl...
HELP!
Hi, I really need help navigating between pages in my web
application. When I press a button I want to go to a
particular page in my Visual Studio .net application.

Plase help
Thank you in advance
Zee

Nov 15 '05 #2
Hi,

if your question is howto direct a user to another page if he presses a
button (not only in VS.NET) you have 2 choices.
1.) Drop a button on your webform. Double click this button. Write:
Response.Redirect("anotherpage.aspx", [optional:true]);
This will be handled on server side and you can check what ever you want.

2.) Create a HTML button with a onclick event.
<input ................. onclick="ToNewPage()">

insert the javascript function (ToNewPage) to redirect the user
<script language="javascript"
function ToNewPage(){
document.location.href = 'newpage.aspx';
}
</script>

You don't have to write a function for this. You can also do it like this:
onclick="javascript:document.location.href='newpag e.aspx'"

Hope this helps
Bjoern Wolfgardt
"zee" <zu******@cs.ufh.ac.za> schrieb im Newsbeitrag
news:07****************************@phx.gbl...
HELP!
Hi, I really need help navigating between pages in my web
application. When I press a button I want to go to a
particular page in my Visual Studio .net application.

Plase help
Thank you in advance
Zee

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: brundlefly76 | last post by:
As a Perl programmer for many years, this week I decided to stick my toe back into C for a specific project. During which I was tinkering with C++, which I have no production experience in. I...
1
by: Marcus | last post by:
I have a tab control with 3 pages. I am on page 2 of the Tab Control, and I am trying to set the focus to the 1st combo box on that page. I have this so far: Me.cboMOI2.SetFocus but,...
0
by: zee | last post by:
HELP! Hi, I really need help navigating between pages in my web application. When I press a button I want to go to a particular page in my Visual Studio .net application. Plase help Thank you...
0
by: in10se | last post by:
I have a .NET 2.0 application that uses the WebBrowser control. Because all of my pages are generated dynamically, I am catching the Navigating event, cancelling it, and performing my own operations...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.