473,807 Members | 2,856 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=searchAdva nceResult.asp?P ageIndex="
.Write intPrev & "&medlemsNr =" & request.QuerySt ring("medlemsNr ") &_
"&lan=" & request.QuerySt ring("lan") &_
"&politik=" & request.QuerySt ring("politik") &_
"&sport=" & request.QuerySt ring("sport") &_
"&djur=" & request.QuerySt ring("djur") &_
"&tid=" & request.QuerySt ring("tid") &_
"&bild=" & request.QuerySt ring("bild") & "><< tidigare</a>"

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

try
..Write "<a href=""searchAd vanceResult.asp ?PageIndex="
.......
"&bild=" & request.QuerySt ring("bild") & """><< tidigare</a>"

Note the double quote before searchAdvanceRe sult.asp and before ><< tidigare

"Mikael" <mi************ *@telia.com> wrote in message
news:5b******** ************@ne wsc.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=searchAdva nceResult.asp?P ageIndex="
.Write intPrev & "&medlemsNr =" & request.QuerySt ring("medlemsNr ") &_
"&lan=" & request.QuerySt ring("lan") &_
"&politik=" & request.QuerySt ring("politik") &_
"&sport=" & request.QuerySt ring("sport") &_
"&djur=" & request.QuerySt ring("djur") &_
"&tid=" & request.QuerySt ring("tid") &_
"&bild=" & request.QuerySt ring("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=""searchAd vanceResult.asp ?PageIndex="
.Write Server.URLEncod e(intPrev) & "&medlemsNr =" &
request.QuerySt ring("medlemsNr ") &_ ...
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"TomB" <sh*****@hotmai lXXX.com> wrote in message
news:OE******** ******@TK2MSFTN GP09.phx.gbl...
When you view source on your resultant page, I think the problem is
obvious....
<a href=searchAdva nceResult.asp?P ageIndex=Hello
World&medlemsNR =etc><<tidigare </a>

try
.Write "<a href=""searchAd vanceResult.asp ?PageIndex="
......
"&bild=" & request.QuerySt ring("bild") & """><< tidigare</a>"

Note the double quote before searchAdvanceRe sult.asp and before ><< tidigare
"Mikael" <mi************ *@telia.com> wrote in message
news:5b******** ************@ne wsc.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=searchAdva nceResult.asp?P ageIndex="
.Write intPrev & "&medlemsNr =" & request.QuerySt ring("medlemsNr ") &_
"&lan=" & request.QuerySt ring("lan") &_
"&politik=" & request.QuerySt ring("politik") &_
"&sport=" & request.QuerySt ring("sport") &_
"&djur=" & request.QuerySt ring("djur") &_
"&tid=" & request.QuerySt ring("tid") &_
"&bild=" & request.QuerySt ring("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
2244
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 anyone see any errors in it ? I think I've looked at it too many times and keep missing an obvious error. The form posts the form content to the query string.
4
2356
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 this: www.mycompany.com/partner.asp?PartnerID=??? The partner.asp page then sets a cookie called PartnerID containing the value from the querystring. We have noticed, however, that if the partner calls the partner.asp page and alters the...
3
3137
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 in "log in" and "user authentication, restrict access to page" features. But I find the after login I constantly get redirected from the restricted pages.
1
6753
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: popup.html?pImage=30_leilani_dowding_b_060.jpg&ordRef=1000&Title=Leilani&nbsp;Dowding using the QueryString function below, the pImage variable should be
6
2090
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 event every thursday at 7 am. I have got a method to produce a querystring to configure this timer (according to msdn refernce). This method put querystring to an instance of sysevents class as i described below:
9
1435
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("")) 4)End Sub
6
3818
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 is more that 1249 bytes, then the progress bar of the browser will move too slow and then displaying that the page not found!!!! If the message is less than or equal to 1249 then no problem.
14
2269
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 I need is to type in just a few characters e.g. at the moment to search for all pickups at Heathrow Terminal 1 the user has to type in Heathrow Terminal 1
2
3181
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 that XML string from QueryString, however, the "+" appears as a " " (space), not a "+". I have tried the following: NameValueCollection coll = Request.QueryString; XMLstring = coll.Get("XMLstr"); // result: XMLstring = "<age>8 </age>"
0
9721
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10373
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...
1
10374
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10113
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9195
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
7651
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
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
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.