473,498 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to replace the URL in the address bar



Hi--

How can one replace the URL in the address bar to a "friendly alternative"?

Is there a way to do this with JavaScript?

Is there a way to do this ASP.NET?
For example, suppose I have a site that has the URL...

http://www.MySite.com/

....and when I browse to one section in this site, the URL may look like
this...

http://www.MySite.com/Products/

.....and when I browse to another section, the URL may look like this...

http://www.MySite.com/Data/Page.htm?...Description=52

....and so on, with many different ugly URL strings....

....now, what I want to do is to make the URL in the browser's window always
look like this...

http://www.MySite.com

....no matter what page I am on in the site.
What do you think?

Is there a way to do this with JavaScript?

Is there a way to do this ASP.NET?

Please advise.

Thank you very much.

--Mark
Nov 17 '05 #1
2 1243
ben
The answer is easy--no! You can't do that by javascript or asp.

However, if you use asp, why not design a page, say
http://www.MySite.com/main.asp, which
take parameters from the client to give requested page. If the form data is
POST to the
sever, it won't appear on the address bar.

But it will make your life difficult. Even Microsoft uses "ugly" addresses,
doesn't it?

Ben


Hi--

How can one replace the URL in the address bar to a "friendly alternative"?
Is there a way to do this with JavaScript?

Is there a way to do this ASP.NET?
For example, suppose I have a site that has the URL...

http://www.MySite.com/

...and when I browse to one section in this site, the URL may look like
this...

http://www.MySite.com/Products/

....and when I browse to another section, the URL may look like this...

http://www.MySite.com/Data/Page.htm?...Description=52

...and so on, with many different ugly URL strings....

...now, what I want to do is to make the URL in the browser's window always look like this...

http://www.MySite.com

...no matter what page I am on in the site.
What do you think?

Is there a way to do this with JavaScript?

Is there a way to do this ASP.NET?

Please advise.

Thank you very much.

--Mark

Nov 17 '05 #2
Use a secure site: HTTPS

"Mark Kamoski" <mk******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...


Hi--

How can one replace the URL in the address bar to a "friendly alternative"?
Is there a way to do this with JavaScript?

Is there a way to do this ASP.NET?
For example, suppose I have a site that has the URL...

http://www.MySite.com/

...and when I browse to one section in this site, the URL may look like
this...

http://www.MySite.com/Products/

....and when I browse to another section, the URL may look like this...

http://www.MySite.com/Data/Page.htm?...Description=52

...and so on, with many different ugly URL strings....

...now, what I want to do is to make the URL in the browser's window always look like this...

http://www.MySite.com

...no matter what page I am on in the site.
What do you think?

Is there a way to do this with JavaScript?

Is there a way to do this ASP.NET?

Please advise.

Thank you very much.

--Mark

Nov 17 '05 #3

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

Similar topics

0
1332
by: Joey Martin | last post by:
Couple questions when parsing using replace. I have the following text I am parsing: $650 Number of Bedrooms 3 Air Conditioning? Yes Original Ad SOUTH, 3BR, air, basement. $650. Call 278-4171....
3
4745
by: Miguel J. Jiménez | last post by:
Hi, I have the following node: <node> Some text here with lots of inside it... </node> and I would like it to transfrom it using XSLT to the following: Some text<br/> here with</br> lots...
24
4464
by: Wim Roffal | last post by:
Is there a possibility to do a string replace in javascript without regular experessions. It feels like using a hammer to crash an egg. Wim
2
14881
by: Daniel | last post by:
I use an Access database to basically take data exports, import them, manipulate the data, and then turn them into exportable reports. I do this using numerous macros, and queries to get the data...
1
8284
by: dig314 | last post by:
MSAccess linking to Oracle 8 tables with Microsoft ODBC for Oracle driver I need to change the email address of all users because our domain has changed. Is there a way to do this with SQL and...
10
13905
by: localpricemaps | last post by:
i have some html that looks like this <address style="color:#">34 main,<br> Boston, MA</address> and i am trying to use the replace function to get rid of the <Br> that i scrape out using...
3
2849
by: g0c | last post by:
hi, how to hide or replace email addresses in php mail function with something like "group" so the email addresses to which email is sent are not visible ? i have : $subs = "email1@dot.com,...
9
2171
by: MrHelpMe | last post by:
Hello again experts, I have successfully pulled data from an LDAP server and now what I want to do is drop the data into a database table. The following is my code that will insert the data but...
5
3211
by: MoslyChang | last post by:
Hi, All When I look at effective c++,item2 and item3. I have some basic questions , Does anyone be familar with this topic? it suggests const is perfer to #define, then I think how to replace...
3
10012
by: Ned White | last post by:
Hi All, To replace some substrings in a string value, i use Regex.Replace method mulptiple times like; strmemo = "new Data for user; Name:@@Name , Surname:@@Surname, Address:@@Address";...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7002
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
7165
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,...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4910
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1419
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
291
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.