473,507 Members | 2,776 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2081
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
2226
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
2337
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
3115
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
6725
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
2076
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
1422
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
3785
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
2241
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
3152
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
7109
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...
0
7313
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
7372
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...
1
7029
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
7481
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
3190
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1537
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
411
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...

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.