469,303 Members | 1,980 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,303 developers. It's quick & easy.

URL With a Space

In an ASP Page is there a way to have a link that calls another page whose
name includes a space? For example, I'd like to be able to call "My
Page.asp" by building a href type link the user can click on.

The equivalent of:

<a href="My Page.asp"> Open </a> the page

I've tried URLEncode but that didn't work.

--
------------------------------------
Wayne Wengert
wa***@wengert.org
Jul 19 '05 #1
6 8233
if the only pb you have is the space char you can use this function

url="Ma Page.asp"
Turl=lcase(replace(url," ","%20"))

"Wayne Wengert" <wa***@wengert.org> a écrit dans le message de
news:eS**************@TK2MSFTNGP11.phx.gbl...
In an ASP Page is there a way to have a link that calls another page whose
name includes a space? For example, I'd like to be able to call "My
Page.asp" by building a href type link the user can click on.

The equivalent of:

<a href="My Page.asp"> Open </a> the page

I've tried URLEncode but that didn't work.

--
------------------------------------
Wayne Wengert
wa***@wengert.org

Jul 19 '05 #2
replace the space with %20
or better yet Server.URLEncode() the url :}
--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------
"Wayne Wengert" <wa***@wengert.org> wrote in message
news:eS**************@TK2MSFTNGP11.phx.gbl...
In an ASP Page is there a way to have a link that calls another page whose
name includes a space? For example, I'd like to be able to call "My
Page.asp" by building a href type link the user can click on.

The equivalent of:

<a href="My Page.asp"> Open </a> the page

I've tried URLEncode but that didn't work.

--
------------------------------------
Wayne Wengert
wa***@wengert.org

Jul 19 '05 #3
<a href="My%20Page.asp"> Open </a> the page

-dlbjr

Discerning resolutions for the alms
Jul 19 '05 #4
Why didn't URLEncode work? You can always manually urlencode if you want.

My%20Page.asp

Ray at home

"Wayne Wengert" <wa***@wengert.org> wrote in message
news:eS**************@TK2MSFTNGP11.phx.gbl...
In an ASP Page is there a way to have a link that calls another page whose
name includes a space? For example, I'd like to be able to call "My
Page.asp" by building a href type link the user can click on.

The equivalent of:

<a href="My Page.asp"> Open </a> the page

I've tried URLEncode but that didn't work.

--
------------------------------------
Wayne Wengert
wa***@wengert.org

Jul 19 '05 #5
Thanks all.

URLEncode did not work but HTMLEncode did work. I am trying to find some
reference material to explain the difference.

Wayne

"Ray at home" <myfirstname at lane 34 . komm> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
Why didn't URLEncode work? You can always manually urlencode if you want.

My%20Page.asp

Ray at home

"Wayne Wengert" <wa***@wengert.org> wrote in message
news:eS**************@TK2MSFTNGP11.phx.gbl...
In an ASP Page is there a way to have a link that calls another page whose name includes a space? For example, I'd like to be able to call "My
Page.asp" by building a href type link the user can click on.

The equivalent of:

<a href="My Page.asp"> Open </a> the page

I've tried URLEncode but that didn't work.

--
------------------------------------
Wayne Wengert
wa***@wengert.org


Jul 19 '05 #6
Now that you know how to make it work with a space, do yourself a big favor
and rename the file to "my_page.asp" or "mypage.asp".

--
Mark Schupp
--
Head of Development
Integrity eLearning
Online Learning Solutions Provider
ms*****@ielearning.com
http://www.ielearning.com
714.637.9480 x17
"Wayne Wengert" <wa***@wengert.org> wrote in message
news:uZ**************@tk2msftngp13.phx.gbl...
Thanks all.

URLEncode did not work but HTMLEncode did work. I am trying to find some
reference material to explain the difference.

Wayne

"Ray at home" <myfirstname at lane 34 . komm> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
Why didn't URLEncode work? You can always manually urlencode if you want.

My%20Page.asp

Ray at home

"Wayne Wengert" <wa***@wengert.org> wrote in message
news:eS**************@TK2MSFTNGP11.phx.gbl...
In an ASP Page is there a way to have a link that calls another page

whose name includes a space? For example, I'd like to be able to call "My
Page.asp" by building a href type link the user can click on.

The equivalent of:

<a href="My Page.asp"> Open </a> the page

I've tried URLEncode but that didn't work.

--
------------------------------------
Wayne Wengert
wa***@wengert.org



Jul 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Malcolm Dew-Jones | last post: by
38 posts views Thread by Xah Lee | last post: by
11 posts views Thread by kenneth | last post: by
10 posts views Thread by Bing Wu | last post: by
5 posts views Thread by Yasaswi Pulavarti | last post: by
2 posts views Thread by shagy | last post: by
10 posts views Thread by Phil Stanton | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.