473,545 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

can't pass % wildcard variable in querystring

Hi,

I'm trying to pass the wildcard variable % to another page via
request.queryst ring.

When I go to pick up the variable through request.queryst ring, it will
never diplay the "%" if one is included. It will diplay any other
characters included in the variable though.

Code from page 1:

<%response.writ e "<a href='Page_2.as p?Severity=" & varCombo_Severi ty &
"&Owner=" & varCombo_Owner & "'>" & "<i> Go to Page 2 </i>" & "</a>"
%>

Code from page 2:

<%varCombo_Seve rity = Request.Queryst ring ("Severity") %>
<%varCombo_Owne r = Request.Queryst ring ("Owner")%>

Result: No % wildcards are passed though to page 2

Any ideas?

Thanks,

Russell
Jul 19 '05 #1
1 2514
Bryan Russell wrote on 11 mrt 2004 in
microsoft.publi c.inetserver.as p.general:
I'm trying to pass the wildcard variable % to another page via
request.queryst ring.

When I go to pick up the variable through request.queryst ring, it will
never diplay the "%" if one is included. It will diplay any other
characters included in the variable though.

Code from page 1:

<%response.writ e "<a href='Page_2.as p?Severity=" & varCombo_Severi ty &
"&Owner=" & varCombo_Owner & "'>" & "<i> Go to Page 2 </i>" & "</a>"
%>

Code from page 2:

<%varCombo_Seve rity = Request.Queryst ring ("Severity") %>
<%varCombo_Owne r = Request.Queryst ring ("Owner")%>

Result: No % wildcards are passed though to page 2


replace with &amp;

btw:
using a querystring a a db-query source is a bad idea,
prone to malicious SQL injection attacks.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2

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

Similar topics

1
3423
by: Ravi | last post by:
My XML looks like: <role type="Joker"> <Profile id="13">ABC_Organization</Profile> </role> My XSL looks like: <xsl:variable name="prefix">profile_joker_</xsl:variable> <xsl:variable name="vid"><xsl:value-of select="Profile/@id"/></xsl:variable>
6
2622
by: John Wilkin | last post by:
I'm using an xsl stylesheet to transform an xml source from a remote URL. I'm using the xslt.pl processor available from "http://www.dopscripts.com/doc/description.html". The remote URL is placed in the prologue/prolog (US English spellings have never come naturally to me) of the xsl document as follows: <?xml version="1.0"?> <!DOCTYPE...
3
2204
by: Kelvin | last post by:
Hi All, Please help. How to pass traditional asp session variable to C# session variable ?? Please advise. Thanks
7
2205
by: Spongebob | last post by:
Hello, I have a question about how to pass information between pages in ASP.NET. There are 2 pages : page1.aspx, page2.aspx. On page1 user clicks the record. Then, I need to show the detailed info about that record in page2. How to pass the ID of record? Should I use querystring or cookies or session variable? The problem is:
9
1958
by: Paul | last post by:
What I am trying to do is as follows. I have a page with 3 links,that direct the user to 3 different pages when selected after login. So all link selections will first direct the user to a login page. Once the user logs in then they are directed to the appropriate link. So for all 3 links they all go to a login page, but each link must pass...
2
4590
by: Ranginald | last post by:
Hi, I have a repeater based on a stored procedure. It pulls the following: catDesc Image The user sees the category description (catDesc) , and then clicks on the image (Image) which is bound to the catID. This catID (@catID --- an integer) is then to be passed to the next page, sculpture2.aspx for use in a datagrid with a stored...
0
956
by: =?Utf-8?B?bWFydGluMQ==?= | last post by:
I just use queryString ("image") to keep generated chart in the middle panel with top menu and bottom table when user select different chart varibale like Unit on the dropdownlist button and enter date on the textbox. The top panel is menu including dropdownlist button, textbox and submit button, the bottom panel is reference table called...
3
1611
by: Lars Eighner | last post by:
Is it possible, accidentally or on purpose, to pass a wildcard to this function that would have the effect of deleting many or all rows (shortname is a unique, non-null field)? function delete_row_by_shortname($table,$shortname){ global $mysqlhost, $mysqlusr, $mysqlpw, $mysqldb; $link = mysql_connect($mysqlhost, $mysqlusr, $mysqlpw); if...
3
1567
by: DaveRook | last post by:
Hi I have a simple piece of code which will not accept the wild card! My SQL looks like <% if Request.QueryString("num")<>"" then Var_Number = Request.QueryString("num") else
0
7478
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...
0
7410
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...
0
7668
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. ...
0
7923
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...
0
7773
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...
0
4960
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...
0
3448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1901
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 we have to send another system
1
1025
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.