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

problem with querystring

Hi All!
I have a problem here and i can't see what it is...
My parameters (value) are shopped off.
exampe "Hello world" will end up like "hello"
How should i adjust the syntax to get a whole string that is not shopped
off?
Thanks Mike


if intPrev <> 0 then

With Response
.Write "<a href=searchAdvanceResult.asp?PageIndex="
.Write intPrev & "&medlemsNr=" & request.QueryString("medlemsNr") &_
"&lan=" & request.QueryString("lan") &_
"&politik=" & request.QueryString("politik") &_
"&sport=" & request.QueryString("sport") &_
"&djur=" & request.QueryString("djur") &_
"&tid=" & request.QueryString("tid") &_
"&bild=" & request.QueryString("bild") & "><< tidigare</a>"

.Write NBSP(5)
End With
end if
Jul 19 '05 #1
2 2075
When you view source on your resultant page, I think the problem is
obvious....
<a href=searchAdvanceResult.asp?PageIndex=Hello
World&medlemsNR=etc><<tidigare</a>

try
..Write "<a href=""searchAdvanceResult.asp?PageIndex="
.......
"&bild=" & request.QueryString("bild") & """><< tidigare</a>"

Note the double quote before searchAdvanceResult.asp and before ><< tidigare

"Mikael" <mi*************@telia.com> wrote in message
news:5b********************@newsc.telia.net...
Hi All!
I have a problem here and i can't see what it is...
My parameters (value) are shopped off.
exampe "Hello world" will end up like "hello"
How should i adjust the syntax to get a whole string that is not shopped
off?
Thanks Mike


if intPrev <> 0 then

With Response
.Write "<a href=searchAdvanceResult.asp?PageIndex="
.Write intPrev & "&medlemsNr=" & request.QueryString("medlemsNr") &_
"&lan=" & request.QueryString("lan") &_
"&politik=" & request.QueryString("politik") &_
"&sport=" & request.QueryString("sport") &_
"&djur=" & request.QueryString("djur") &_
"&tid=" & request.QueryString("tid") &_
"&bild=" & request.QueryString("bild") & "><< tidigare</a>"

.Write NBSP(5)
End With
end if

Jul 19 '05 #2
Also, any parameter that might have unsafe characters (such as the " " in
"hello world") should be URLEncoded:

With Response
.Write "<a href=""searchAdvanceResult.asp?PageIndex="
.Write Server.URLEncode(intPrev) & "&medlemsNr=" &
request.QueryString("medlemsNr") &_ ...
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"TomB" <sh*****@hotmailXXX.com> wrote in message
news:OE**************@TK2MSFTNGP09.phx.gbl...
When you view source on your resultant page, I think the problem is
obvious....
<a href=searchAdvanceResult.asp?PageIndex=Hello
World&medlemsNR=etc><<tidigare</a>

try
.Write "<a href=""searchAdvanceResult.asp?PageIndex="
......
"&bild=" & request.QueryString("bild") & """><< tidigare</a>"

Note the double quote before searchAdvanceResult.asp and before ><< tidigare
"Mikael" <mi*************@telia.com> wrote in message
news:5b********************@newsc.telia.net...
Hi All!
I have a problem here and i can't see what it is...
My parameters (value) are shopped off.
exampe "Hello world" will end up like "hello"
How should i adjust the syntax to get a whole string that is not shopped
off?
Thanks Mike


if intPrev <> 0 then

With Response
.Write "<a href=searchAdvanceResult.asp?PageIndex="
.Write intPrev & "&medlemsNr=" & request.QueryString("medlemsNr") &_
"&lan=" & request.QueryString("lan") &_
"&politik=" & request.QueryString("politik") &_
"&sport=" & request.QueryString("sport") &_
"&djur=" & request.QueryString("djur") &_
"&tid=" & request.QueryString("tid") &_
"&bild=" & request.QueryString("bild") & "><< tidigare</a>"

.Write NBSP(5)
End With
end if


Jul 19 '05 #3

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

Similar topics

2
by: John Savidge | last post by:
Hi All, I had this simple CDONTS form to email code working a few days ago. However it doesn't seem to work now as I am not receiving the emails the form generates. Below is my code, can...
4
by: Eifion | last post by:
I've noticed a strange problem with setting cookies in ASP when the cookie name you're setting exists in the querystring. The company I work for has many partner sites who link to our site like...
3
by: Paul | last post by:
Hi all, at present I I've built a website which can be updated by admin and users. My problem, I've combined "log in" and "access levels" to restrict access to certain pages, using the built...
1
by: lion | last post by:
my Problem: a query string passed into a html page doesn't display correctly on a mac I am just using html and javascript (no ASP, PHP or server side scripting) This is the query string:...
6
by: DAMAR | last post by:
I have got a problem with WMI's Win32_LocalTime: here is the msdn reference: http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_localtime.asp I'D like to have a timer which pass me an...
9
by: Miguel Dias Moura | last post by:
Hello, I have this code: 1) <script runat="server"> 2)Sub Page_Load(sender As Object, e As System.EventArgs) 3)Dim keywords() As String = Request.QueryString("search").Split(CChar(""))...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
14
by: Simon Gare | last post by:
Hi, have a search.asp page with results.asp page drawing data from an SQL db, problem is the user has to type the whole field value into the search box to retrieve the value on results.asp, what...
2
by: zman77 | last post by:
I have a problem with HttpRequest.QueryString. There is an XML string that contains something like the following: <age>8+</age> As you probably guessed, the "+" is the problem :) I want to get...
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...
0
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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...

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.