Hi Paul,

that can be done.  however if the database value is
alreade 5" X 7", how can i replace the (") with "
using the built-in replace function.  i tried using
replace(varName, """, """).  This function
conflicts with (""") in the replace function.

Sincerly,

Chris Andrada
--- Paul Robinson <[EMAIL PROTECTED]> wrote:

> Chris,
> My first attempt is not correct, sorry.
> If you include the quotes for the value= "   "  you
> will not get the
> required result.
> It is my understanding (please correct me, all you
> experts out there, if I
> am mistaken) that correct HTML coding does include
> the quotes. Thus the
> correct ASP code should read as follows:
> 
> <%
> Dim strSize
> strSize = "5&quot; x 7&quot;"%>
> <input type="text" value="<%=strSize %>">
> 
> regards
> Paul
> 
> 
> ----- Original Message ----- 
> From: "Paul Robinson" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Thursday, December 23, 2004 1:47 PM
> Subject: Re: [AspClassicAnyQuestionIsOk] How do i
> display 5" X 7" in an
> input field?
> 
> 
> >
> > Chris,
> > The problem is caused by the quotes. Your ASP
> server is reading them as
> > ending the attribute value, whereas you want them
> to be part of the
> > attribute value.
> >
> > The ASP variable solution would be
> > <%
> > Dim strSize
> > strSize = "'7"" x 5""'"%>
> > <input type="text" value="<%=strSize %>">
> >
> > In HTML to 'escape' the quote, use the text string
> '&quot;'
> > <input type="text" value="7&quot; x 5&quot;">
> >
> > ----- Original Message ----- 
> > From: "christopher andrada"
> <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Wednesday, December 22, 2004 8:44 PM
> > Subject: [AspClassicAnyQuestionIsOk] How do i
> display 5" X 7" in an input
> > field?
> >
> >
> > >
> > >
> > > Hi All,
> > >
> > > I'm facing a strange problem in putting a DB
> driven
> > > data to display into input type=text.
> > >
> > > for example:
> > > <%
> > > size = 5" X 7"
> > > %>
> > >
> > > if I do it this way,
> > > <input type="text" value="<%=size %>">
> > >
> > > the input field will show "5" only.  It cuts the
> data
> > > after (").
> > >
> > > Please help.
> > >
> > > Thanks,
> > >
> > > Chris Andrada
> > >
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Read only the mail you want - Yahoo! Mail
> SpamGuard.
> > > http://promotions.yahoo.com/new_mail
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to