presentation of string with spaces and apostophes in text box
Here's an interesting question!
This presents input from a form as in a text box.
It works fine, almost. The apostrophe before and after the asp code are needed so that string values with spaces are not chopped off at the space.
The problem is, when a string value with an apostrophe is intered into text1 the browser presents the string up to and not including the apostrophe.
I understand why this happens. Its basic html.
How do I enable presentation of a string value including spaces and apostophes in a text box on an asp page?
Andy Kohlenberg
Jerusalem, Israel
Mark Hensler posted this at 18:01 — 18th April 2001.
He has: 4,048 posts
Joined: Aug 2000
convert all spaces to
convert all double quotes to "
convert all single quotes to &39;
Also you could try Server.HTMLEncode(request.form("text1"))
Mark Hensler
If there is no answer on Google, then there is no question.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.