3 1038
tony wong wrote on 03 jun 2006 in microsoft.public.inetserver.asp.general: i have an asp page to generate this link, "johnmark" is retrieved from a field in SQL http://abc/script.asp?applicant=johnmark
so far it is ok, however now the situation, some data in the field have space, like this "john mark".
the asp page generates the link, like this http://abc/script.asp?applicant=john mark
but when i click the link, the link is just pasted like this http://abc/script.asp?applicant=john (cut before the space)
i tried to use replace(fieldA, " ", "%20"), not work.
It does work under ASP vbs.
Please first show us your real code.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Thanks a lot for your confirmation info.
i tried it again, it works with "replace"
tony
"Evertjan." <ex**************@interxnl.net> ¼¶¼g©ó¶l¥ó·s»D:Xn*******************@194.109.133.2 42... tony wong wrote on 03 jun 2006 in microsoft.public.inetserver.asp.general:
i have an asp page to generate this link, "johnmark" is retrieved from a field in SQL http://abc/script.asp?applicant=johnmark
so far it is ok, however now the situation, some data in the field have space, like this "john mark".
the asp page generates the link, like this http://abc/script.asp?applicant=john mark
but when i click the link, the link is just pasted like this http://abc/script.asp?applicant=john (cut before the space)
i tried to use replace(fieldA, " ", "%20"), not work.
It does work under ASP vbs. Please first show us your real code.
-- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
"tony wong" <x3*@netvigator.com> wrote in message
news:eV**************@TK2MSFTNGP05.phx.gbl... i have an asp page to generate this link, "johnmark" is retrieved from a field in SQL http://abc/script.asp?applicant=johnmark
so far it is ok, however now the situation, some data in the field have space, like this "john mark".
the asp page generates the link, like this http://abc/script.asp?applicant=john mark
but when i click the link, the link is just pasted like this http://abc/script.asp?applicant=john (cut before the space)
i tried to use replace(fieldA, " ", "%20"), not work.
grateful for any ideas?
Thanks a lot.
tony
To create links from text fields use:-
<%="http://abc/script.asp?application=" &
Server.URLEncode(rs("Name").Value)%> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jack |
last post by:
Hi,
I am trying to get a thorough understanding of a code where a addition or
deletion of records can be done from a list of records. For addition part of
the form, data is being obtained from set...
|
by: SP |
last post by:
Hi I have a problem with a customer's XML being submitting to me in a
non-well-format XML.
They said that there are 18 other partners who has been able to tweak the
XML to make it work.
So I...
|
by: Shapiro |
last post by:
I have a scenario where I log a resquest to a database table and update the
request with a corresponding response including the response time. I am using
an HttpModule to do this.
My challenge...
|
by: Nalaka |
last post by:
Hi,
I have some request specific data that gets created in a "early event", that
I need to pass around to many other events.
I need access to this data during that request.
(and more importantly...
|
by: dougwig |
last post by:
I'm trying to handle the scenario where a user's session times out and
and their ajax request triggers a redirection by the webserver (302
error?).
I'm using Prototype 1.4 and the my works great...
|
by: Michael Kujawa |
last post by:
I am using the following to create an SQL statement
using the names and values from request.form.
The loop goes through each item in request.form
The issue comes in having an additional "and" at...
|
by: santhoskumara |
last post by:
How to request to servlet from Ajax and also I got the DOM object in the servlet through Business Logic. Now how will i pass the DOM object from serlvet to Clientside. Where in the client Side i am...
|
by: MDANH2002 |
last post by:
Hi
From VB.NET I want to simulate the POST request of the following HTML form
<html>
<title>HTTP Post Testing</title>
<body>
<form action=http://www.example.com/postdata ...
|
by: chromis |
last post by:
Hi there,
I've recently been updating a site to use locking on application level variables, and I am trying to use a commonly used method which copies the application struct into the request...
|
by: Joseph Geretz |
last post by:
I'm using the Request Filter documentation which can be found here:
http://msdn.microsoft.com/en-us/library/system.web.httprequest.filter.aspx
In this example, two filters are installed, one...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
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$) {
}
...
|
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...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: 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,...
|
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...
| |