Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying '(' in text

Status
Not open for further replies.

JanS

Technical User
Feb 21, 2001
77
AU
Hi,

I have a field returned from the database that in some cases, includes records that have a ( in the text. For example: "This is the text (in brackets)"

The full string will display when I read it into a variable and write that variable to the page but when I add the string into a text box, it stops displaying at the bracket. For example: "This is the text "

Any ideas how I can get the full text to display in the text box?? I am using the following code:

<INPUT id=txtProgramName disabled name=txtProgramName type=&quot;text&quot; style=&quot;HEIGHT: 22px; WIDTH: 250px&quot; value=<%=rsdata(&quot;program_name&quot;)%>>

Thanks
jan
 
Try adding some single quotes. See where I have added them?

WIDTH: 250px&quot; value='<%=rsdata(&quot;program_name&quot;)%>'>
 
works perfectly - thanks for the quick response.

Jan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top