473,657 Members | 2,409 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.o rg
Jul 19 '05 #1
6 8388
if the only pb you have is the space char you can use this function

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

"Wayne Wengert" <wa***@wengert. org> a écrit dans le message de
news:eS******** ******@TK2MSFTN GP11.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.o rg

Jul 19 '05 #2
replace the space with %20
or better yet Server.URLEncod e() the url :}
--
----------------------------------------------------------
Curt Christianson (Software_AT_Da rkfalz.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******** ******@TK2MSFTN GP11.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.o rg

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******** ******@TK2MSFTN GP11.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.o rg

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******** ******@TK2MSFTN GP09.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******** ******@TK2MSFTN GP11.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.o rg


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.as p" or "mypage.asp ".

--
Mark Schupp
--
Head of Development
Integrity eLearning
Online Learning Solutions Provider
ms*****@ielearn ing.com
http://www.ielearning.com
714.637.9480 x17
"Wayne Wengert" <wa***@wengert. org> wrote in message
news:uZ******** ******@tk2msftn gp13.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******** ******@TK2MSFTN GP09.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******** ******@TK2MSFTN GP11.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.o rg



Jul 19 '05 #7

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

Similar topics

2
1601
by: Malcolm Dew-Jones | last post by:
Hello What is the correct way to associate the attributes with the tag if the tag has a name space associated with it and the attribute doesn't have a name space? i.e. <mytag
38
23979
by: Xah Lee | last post by:
sometimes i wish to add white space in <p> as to achived effects similar to tab. what should i do? using empty image seems the sure way but rather complicated. (and dosen't change size with font) Woudl some of the space character in unicode work? (my html files uses unicode) Xah
11
1943
by: kenneth | last post by:
I just ran across this. #1 <DBColumn> 1 </DBColumn> #2 <DBColumn> </DBColumn> The data for #1 will be parsed and returned as " 1 ". I get a sequence of Element/Text/EndElement. The data for #2 will not be returned. I get a sequence of Element/Whitespace/EndElement. Why is the data (which happens to be spaces) between my start and end tags being misinterpreted?
10
9896
by: Bing Wu | last post by:
Hi Folks, I have a problem while creating a big table space. It reports error: SQL1139N The total size of the table space is too big Explanation: The size of the current table space is too big. The size of a REGULAR table space is limited to 0xFFFFFF (16777215) pages while the size of a TEMPORARY/LONG table space is limited to 2 tera bytes (2 TB). User Response: Check the diagnostic log file db2diag.log for details. Reduce the size...
5
7563
by: Yasaswi Pulavarti | last post by:
does a command like, db2 drop table tabschema.tabname when run from the Aix prompt reclaim the disk space? Are there any other options? How can we make sure the disk space is reclaimed? Thanks, Yasaswi
3
11428
by: Zheng Da | last post by:
Program received signal SIGSEGV, Segmentation fault. 0x40093343 in _int_malloc () from /lib/tls/libc.so.6 (gdb) bt #0 0x40093343 in _int_malloc () from /lib/tls/libc.so.6 #1 0x40094c54 in malloc () from /lib/tls/libc.so.6 It's really strange; I just call malloc() like "tmp=malloc(size);" the system gives me Segmentation fault I want to write a code to do like a dynamic array, and the code is as
2
6463
by: shagy | last post by:
Hi, I'm having a problem with a <select><option> which has white space in values... When I post the data I only get the first word (up to the white space). "Testing white space" becomes "Testing" after posting code... <select name="descr" id="descr">
1
1645
by: robert | last post by:
I have an xmldocument and need to set the preservewhitespace to true as after processing the document I want to write out the xml (using outerxml/innerxml) and have the identations preserved for readability. However with the preservewhite space option set code such as: foreach (XmlNode node in ParentNode) { }
8
17505
by: Joe Cool | last post by:
I need to map several columns of data from one database to another where the data contains multiple spaces (once occurance of a variable number or spaces) that I need to replace with a single space. What would be the most efficient way to do this? I am using SQL2K. I was thinking a function since I know of no single Transact-SQL command that can accomplish this task.
10
2083
by: Phil Stanton | last post by:
I have a table of SpaceAreas eg Food Store, Garden Shed etc with the first and last bin for each Space Area defined. eg Food Store First Space 1, last space 26 and Gargen Shed First space 1, last Space 50. SpaceAreas Table is SpaceAreaID Auto SpaceAreaDesc Text FirstSpace Integer LastSpace Integer I have a secont table of the Equipment Stored in each space
0
8310
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8826
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7330
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6166
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4155
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1615
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.