Passing a string, through a url, into an ASP.NET application

Soldato
Joined
18 Oct 2002
Posts
15,861
Location
NW London
Hello gents,

I need some advice on passing strings, within web pages:

I have created an ASP.NET application:
http://webclient.aicore.co.uk/

Now, what I want to do is create some code which can do the following:

1. when a user enters a url into the browser: EG:
http://webclient.aicore.co.uk/somecode

the user will be forwarded automatically to:
http://webclient.aicore.co.uk/

however, the string "somecode" is removed from the url and is then submitted in to the ASP.NET application (and saved within the application in a variable)

Is this possible?

What I am trying to do is find some process which will enable me to pass a string (through the url), into my ASP.NET application.

I already have a solution in place, but this solution involves using an iframe and is not a clean solution. Perhaps someone can suggest something better.

Any advice would be greatly appreciated.
 
Hi thanks for the suggestion phill.

The problem I am having is that I need to save the full/actual url in a hiddenfield (this is easy), but then when the new webclient page is launched, that url, which was previously saved, will disappear.

I have now come up with a new solution. It's a solution which involves me uploading to my webserver, identical clients (ie. asp.net pages), to many different directories. Ideally, I would prefer to use an iFrame, to avoid having to upload the same webclient to different directories, but I simply cannot store the url and successfully pass it into the iFrame, which will contain the asp.net application (webclient).

If I have only 10 customers, say, each with their own directory, if any upgrades the webclient(s) are made, I will need to upload 10 new identical webclients. However, if I have 10000 customers, then it will need 10k individual uploads....which is what I am not liking.
 
Back
Top Bottom