Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 17th, 2004, 07:17 PM
Authorized User
 
Join Date: Apr 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default Display full value in text box, including ""

Hi:
    I am using ASP with MS Access. I store 12" X 14" in database table. Now when i retrive this value (12" X 14")and show it on page, it works fine.

    When i retirve this value and show in text box it display only 12 and remaining " X 14" is not shown in text box. I mean it only displays value before ".

    How can i display full value in text box.

Thanks
Burhan

 
Old May 17th, 2004, 07:31 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Please post your code. My guess is that you are doing something like this:

<input type=text value="<%=queryValue%>">

Try instead this:

<input type=text value='<%=queryValue%>'>

HTH,

Snib

<><
 
Old May 20th, 2004, 06:55 PM
Authorized User
 
Join Date: Apr 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks my problem is solved problem was that:

[bvalue='<%=queryValue%>'>[/b]

i was using value="<%=queryValue%>"

Burhan

 
Old July 18th, 2004, 03:59 PM
Authorized User
 
Join Date: Jul 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To add a little to this situation...
This will fix the "double-quotes" situation, but will cause the same problem on single-quotes now, a problem I had dealing with both in the data. To get data containing both I used the Replace command and substituted the ascii code equivalent. For example Replace(string,"'","#039;"). This will replace all single-quotes with the ascii code and the browser will not interpret it as a delimiter of the field. Combined with the above solution, this allows one to display both in the resulting HTML output.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Count in combo box(display results in text box) mboyisis Access 4 April 4th, 2008 07:08 AM
Get last record and display in an Text Box hewstone999 Access VBA 1 March 18th, 2008 06:48 AM
Full Justification through Text Box in VB2005/VB6 saurabh_diwan Visual Studio 2005 1 April 2nd, 2007 08:36 AM
Display currency amounts, including cents. danielh Javascript How-To 1 January 19th, 2004 06:57 PM
Numeric Display in Text Box Tallon Wolle Pro VB 6 1 December 5th, 2003 05:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.