473,792 Members | 2,877 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

why cant i use "currency" in querystring!?

can you guys please tell me why i cant use currency as a name in my
querystring?

note: i NEED to use it since i'll be linking to a remote site were they get
that info from querystring

<%
curr="SEK"
%>
<html>
<body>
?a=2&currency=< %=curr%>
</body>
</html>
shows up as:

?a=2¤cy=SEK

wtf?
/Lasse
Jul 19 '05 #1
5 1915
are you encoding this?
&curr is the code for the $ isn't it?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Lasse Edsvik" <la***@nospam.c om> wrote in message
news:ey******** *****@TK2MSFTNG P11.phx.gbl...
can you guys please tell me why i cant use currency as a name in my
querystring?

note: i NEED to use it since i'll be linking to a remote site were they get that info from querystring

<%
curr="SEK"
%>
<html>
<body>
?a=2&currency=< %=curr%>
</body>
</html>
shows up as:

?a=2¤cy=SEK

wtf?
/Lasse

Jul 19 '05 #2
Lasse Edsvik wrote:
can you guys please tell me why i cant use currency as a name in my
querystring?

note: i NEED to use it since i'll be linking to a remote site were
they get that info from querystring

<%
curr="SEK"
%>
<html>
<body>
?a=2&currency=< %=curr%>
</body>
</html>
shows up as:

?a=2¤cy=SEK

wtf?
/Lasse

The problem isn't that you cannot use "currency" in your querystring: the
problem is that the compiler thinks you are trying to use the &curren
character code.

See this article:
http://support.microsoft.com/?kbid=212704

HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #3
"Lasse Edsvik" wrote:

can you guys please tell me why i cant use currency as a
name in my querystring?
The Entity Sets for HTML 4:
http://www.w3.org/TR/html401/struct/...dx-entity_sets

From the Latin-1 entity (http://www.w3.org/TR/html401/HTMLlat1.ent):

<!ENTITY curren CDATA "¤" -- currency sign, U+00A4 ISOnum -->
... ?a=2&currency=< %=curr%> ...


I think you're up against a browser bug** here, since named entities are
supposed to end with a semicolon. Fortunately, you can get around it by
using:

?a=2&amp;curren cy=<%=curr%>

**I know, I know -- Microsoft does it this way to accommodate sloppy HTML.
Other browsers are not so forgiving. But that's a two-edged sword, don't you
think?
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #4
The bogus fix would be to just list currency first in your querystring.

Ray at work

"Lasse Edsvik" <la***@nospam.c om> wrote in message
news:ey******** *****@TK2MSFTNG P11.phx.gbl...
can you guys please tell me why i cant use currency as a name in my
querystring?

note: i NEED to use it since i'll be linking to a remote site were they get that info from querystring

<%
curr="SEK"
%>
<html>
<body>
?a=2&currency=< %=curr%>
</body>
</html>
shows up as:

?a=2¤cy=SEK

wtf?
/Lasse

Jul 19 '05 #5
did you actually test it in a link

The following works fine in IE6, NS4.7, and NS6.2

----TEST.ASP----
<%
curr="SEK"
%>
<html>
<body>
<%="a="&Request .QueryString("a ")%><br>
<%="currency="& Request.QuerySt ring("currency" )%><br>
<a href="test.asp? a=2&currency=<% =curr%>"> test</a>
</body>
</html>
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Lasse Edsvik" <la***@nospam.c om> wrote in message
news:ey******** *****@TK2MSFTNG P11.phx.gbl...
can you guys please tell me why i cant use currency as a name in my
querystring?

note: i NEED to use it since i'll be linking to a remote site were they get that info from querystring

<%
curr="SEK"
%>
<html>
<body>
?a=2&currency=< %=curr%>
</body>
</html>
shows up as:

?a=2¤cy=SEK

wtf?
/Lasse

Jul 19 '05 #6

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

Similar topics

1
8868
by: Bill Stanard | last post by:
I have had no success using the format function as follows (the two lines of code run one after the other): 'displays a running total of lblAmtdue.Caption 'contents in txtTotal.Text txtTotal.Text = lblAmtdue.Caption + Val(txtTotal.Text) 'tries to format contents of txtTotal.Text as currency; doesn't work txtTotal.Text = Format$(txtTotal.Text, "Currency")
1
5373
by: George | last post by:
Hi, I am trying to write a query in Oracle which I have not done before, and are having some difficulty getting my result. Please check my query and my results. select max(note.datetime), acgr.group_code, bank.local_acc_no, bank.short_name,
7
2756
by: Philip Nelson | last post by:
Folks, I've been exercising my mind recently about the complexities of implementing a "currency" data type within DB2 to cope with multiple currencies. A monetary value is often simply represented as a DECIMAL column : for example many times I've seen DECIMAL(12,2) used. The issue with this is that there is nothing to interpret what currency this relates to (US dollars, Canadian dollars, Euros, British pounds or whatever), and a...
60
3981
by: K. G. Suarez | last post by:
Hello everyone. I am new to programming and my uncle gave me a copy of "C For Dummies 2nd Edition". I am up to chapter 9 right now. He probably saw me struggling with "The C Programming Language" by Ritchie and Kernigahn and felt bad. Does anyone have experience with this book? I feel that it is helping me along pretty well. But how much will this book teach me? What would be the next book to read?
18
4882
by: Atara | last post by:
In my apllication I use the following code: '-- My Code: Public Shared Function strDate2Date(ByVal strDate As String) As System.DateTime Dim isOk As Boolean = False If (strDate Is Nothing) Then isOk = False ElseIf Not (strDate.Length() = 6) Then isOk = False
13
3999
by: royaltiger | last post by:
I am trying to copy the inventory database in Building Access Applications by John L Viescas but when i try to run the database i get an error in the orders form when i click on the allocate button "Unexpected Error":3251 operation is not supported for this type of object.The demo cd has two databases, one is called inventory and the other just has the tables for the design called inventory data. When you run inventory the database works...
0
9518
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10159
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
9033
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
7538
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
5436
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4111
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
2
3719
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2917
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.