473,386 Members | 1,820 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,386 software developers and data experts.

How To: redirect to current URL with new parameters

I have a toolbar aspx page in a frameset. On the toolbar is a dropdownlist.
The frameset is launched from an outside source and comes in with a specific
parameter for the module desires, like...
http://myurl.com/frameset.asp?themod="A"

The dropdownlist contains the current selected module (A) and a list of
other choices (B,C,D, etc.). When a user selected a different module I want
the main URL reloads with a new param, like...
http://myurl.com/frameset.asp?themod="B"

My questions are;

1) Is there an easy way to reference the current URL? Without the original
param? Or do I need to parse it?

2) I have a case select for ach of the possible modules. Would a
response.redirect be the best way to relaunch the frameset? and since it's
occuring from a the top frame page, how would I do a response.redirect to
reload the main frameset from one of the frame pages?

Thanks, (I'm very new to ASP.NET)

Tony Z.
Nov 18 '05 #1
1 2813
Check the ServerVariables collection. I believe the one you are looking for
is Script_Name. That should refer to the page itself without the
querystring.

You can't do a response redirect to other frames though, it will only
redirect the current page/frame location.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Tony Zoccolillo" <to*****@hotmail.com> wrote in message
news:uZ**************@TK2MSFTNGP12.phx.gbl...
I have a toolbar aspx page in a frameset. On the toolbar is a dropdownlist. The frameset is launched from an outside source and comes in with a specific parameter for the module desires, like...
http://myurl.com/frameset.asp?themod="A"

The dropdownlist contains the current selected module (A) and a list of
other choices (B,C,D, etc.). When a user selected a different module I want the main URL reloads with a new param, like...
http://myurl.com/frameset.asp?themod="B"

My questions are;

1) Is there an easy way to reference the current URL? Without the original param? Or do I need to parse it?

2) I have a case select for ach of the possible modules. Would a
response.redirect be the best way to relaunch the frameset? and since it's occuring from a the top frame page, how would I do a response.redirect to
reload the main frameset from one of the frame pages?

Thanks, (I'm very new to ASP.NET)

Tony Z.

Nov 18 '05 #2

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

Similar topics

6
by: Omid | last post by:
Hi. I have problems when I try to redirect everything that is sent to cout to a file. I have one piece of code that works and one that does not work. The only difference is which headers I use....
10
by: Anthony Williams | last post by:
Hi gang, This one looks like a bug :o( As you may or may not know, setting session management in web.config to use cookieless sessions causes the ASP.NET runtime to munge a session ID into...
4
by: Martin | last post by:
I know this might seem like an odd question. I've got a page that has a few url parameters. There's a couple of modes the page can be entered in, with correspondingly different urls params. ...
13
by: Tim | last post by:
Hello, Is there a way to "cancel" a response.Redirect? For example, in the code below, could I insert anything in the Catch statement that would cancel the redirect and resume flow after the...
3
by: michael_vanommeren | last post by:
I have two web applications that I am working with and I am trying to do a Response.Redirect from one to the other. They are setup as separate web applications on the same IIS server. If I go...
3
by: neil_pat | last post by:
I have a stored procedure which returns a value of between 0 and 4. I want the user to press a button to receive feed back on their last input. The save button takes the input and saves it to...
8
by: Laith Zraikat | last post by:
I am trying to invoke a post request from code behind of an asp.net page using "WebClient" object, and I want the user to be redirected to the action url as well. So far Ive been able to send...
5
by: Seb | last post by:
Hi, We have a page in VB.NET redirecting to an external site. Example: http://mysite.com/redirect.aspx?url=http//externalsite.com/their-page.asp The target page on the external site...
1
by: zizi2 | last post by:
I have a form that I want to redirect to another page after clicking the submit button. It works well (please see the code below) except that it cancells my pop-up message, it goes the redirected...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.