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

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 1647
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
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
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
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
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
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
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
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
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
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
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";...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.