The ' Symbol..

I have a database query where it looks like this

strQuery = "UPDATE resource SET TITLE = ' "&request.form("TITLE")&" ' WHERE
ID = '"&request.form("ID")&"';"

the problem is that if the field called title has a ' in the text then the
UPDATE fails, because I have closed the TITLE field early. If I reverse the
" & ' marks then I will have the same problem but the opposite way
I thought about doing something with ASP, replace but I still cant get round
the fact that I will have a ' in the UPDATE statement
Can I do something like REPLACE ' with the CHAR code value and add the code
in the SQL record, and will this display the ' or the code.

View Replies


ADVERTISEMENT

Regular Expression :: Eginning Symbol ^ Or The End Symbol $

would this work if i only wanted the user to enter any number of letters?[a-zA-Z]*

would i need to add the beginning symbol ^ or the end symbol $ ?

View Replies View Related

<> Symbol ?

anyone know what does the symbol <> means?
Example: Remove_Id <> ""

View Replies View Related

Avoid Symbol ' In The URL

how to elaborate this problem that i m facing. ok, let say ..i have a URL wit id number such as www.abc.com/memberpage.asp?memberid=12.

when i add the symbol ' at the end of the url (like that:www.abc.com/memberpage.asp?memberid=12'), and enter, it will display error for my page.

But when i try to put a ' at this web page here, it will not display any error, how can i do this with ASP languagE?how can i avoid it using ASP language ?

View Replies View Related

Amp; Symbol In Code

I ran my page through the W3C markup validator, and all's well except one thing. If I have the "&" symbol in my URLs, it says: Quote:

Line 143, column 66: cannot generate system identifier for general entity "cat"
Line 143, column 69: reference not terminated by REFC delimiter
Line 143, column 69: reference to external entity in attribute value

I tried doing "&-amp;" (without the -) and "%26" but even though %26 works for the validator, my ASP script doesn't know it's an amp.

View Replies View Related

Different Decimal Symbol

I have ASP code displaying currency datatype data from Access database. I have copies of this asp code and tha database on two w2k/IIS5 computers, bothg having the decimal symbol set to "." in the Regional setting both for numbers and for currency. However on one PC it shows dots, while on the other - commas. What is actually controlling which decimal shows up?

View Replies View Related

Currency Symbol

Wondering if anyone can help me with this annoying problem. I want to display a (£) on an ASP page, but it keeps putting a J instead. I've tried formatcurrency on the variable that it displays, but still comes up as a J and I've tried changing session.LCID to 2057. Still shows a J.

If you check View Source it shows the £ but it shows as a J on the page. If you check on IE under View... Encoding it comes up as Cyrillic (Windows) and if you change this to Western European (Windows) the page refreshes and shows fine; £ signs come up. But, as soon as you click on a link, it reverts back to Cyrillic.

View Replies View Related

Pass And & Symbol In A Query String

Is it possible to pass an -- & symbol --- in a query string.

ie: varialbe = Purple & Pink

page.asp?var=varialbe

-->> With this I get: Purple%20&%20Pink Passed through and the query string only picks up on the Purple.

View Replies View Related

' Symbol In Uploaded Filename - Not Working

I have a form which enters a URL into a file field in my database: E.G.

R:ConfidentialControlledWork.txt goes into field file_path_complete

However if the file name contains a ' character E.G.
r:confidentialjon's work.doc

Then it will not work correctly on my display page, as any text after
the ' will be ignored leaving it as r:confidentialjon

Here is how I create a link to this document on my display page ...

Response.write "<a href='"&rsNOTES("File Path Complete")&"'>"
Response.write (rsNOTES("File Name"))

With rsNotes(File Path Complete) being the full path and filename.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved