Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Problem displaying full data in <input type=text>


Message #1 by "Petr Novotny" <pn@b...> on Wed, 14 Nov 2001 09:49:49
Hello,



I have a problem displaying full data in following:



<input type=text name=custname size=55 maxlength=100 value=<%=detailCust

("CustomerName")%>>



It always show only the first part of the name, not the rest.



Can anyone help me?



Thanks



Petr
Message #2 by "wb67" <wburrough67@y...> on Wed, 14 Nov 2001 10:10:40 -0000
Petr,

You need to put some quotes around the value attribute. Otherwise the browser sees the space in customer name and assumes that the

first word is all there is.



i.e.

<input type=text name=custname size=55 maxlength=100 value="<%=detailCust("CustomerName")%>">





walter

> -----Original Message-----

> From: Petr Novotny [mailto:pn@b...]

> Sent: 14 November 2001 09:50

> To: ASP Databases

> Subject: [asp_databases] Problem displaying full data in <input

> type=text>

>

>

> Hello,

>

> I have a problem displaying full data in following:

>

> <input type=text name=custname size=55 maxlength=100 value=<%=detailCust

> ("CustomerName")%>>

>

> It always show only the first part of the name, not the rest.

>

> Can anyone help me?

>

> Thanks

>

> Petr

>




>







_________________________________________________________



Do You Yahoo!?



Get your free @yahoo.com address at http://mail.yahoo.com







Message #3 by "Petr Novotny" <pn@b...> on Wed, 14 Nov 2001 11:26:22 +0100
Walter,

It worked!



Thanks very much,



Petr



> -----Original Message-----

> From: wb67 [mailto:wburrough67@y...]

> Sent: Wednesday, November 14, 2001 11:11 AM

> To: ASP Databases

> Subject: [asp_databases] RE: Problem displaying full data in 

> <input type=text>

> 

> 

> Petr,

> You need to put some quotes around the value attribute. 

> Otherwise the browser sees the space in customer name and 

> assumes that the

> first word is all there is.

> 

> i.e.

> <input type=text name=custname size=55 maxlength=100 

> value="<%=detailCust("CustomerName")%>">

> 

> 

> walter

> > -----Original Message-----

> > From: Petr Novotny [mailto:pn@b...]

> > Sent: 14 November 2001 09:50

> > To: ASP Databases

> > Subject: [asp_databases] Problem displaying full data in <input

> > type=text>

> >

> >

> > Hello,

> >

> > I have a problem displaying full data in following:

> >

> > <input type=text name=custname size=55 maxlength=100 

> value=<%=detailCust

> > ("CustomerName")%>>

> >

> > It always show only the first part of the name, not the rest.

> >

> > Can anyone help me?

> >

> > Thanks

> >

> > Petr

> >



> wburrough67@y...


> $subst('Email.Unsub')

> >

> 

> 

> 

> _________________________________________________________

> 

> Do You Yahoo!?

> 

> Get your free @yahoo.com address at http://mail.yahoo.com

> 

> 

> 

> 

>  




> $subst('Email.Unsub')

> 

Message #4 by "J House" <jesse@s...> on Sun, 18 Nov 2001 18:58:10
Also watch out, if you have double quotes in your data the html will end 

up looking like



<input type="text" name="productname" value=" 21" Monitor ">

This will diplay only 21 in the text area and if you edit it you will end 

up with only 21 in your data.



I doubt you will have double quotes in your customer names, but something 

to look out for in the future.



sValue = Replace(oRS("ProductName"), Chr(34), "&quot;")

<input type="text" name="product"  value="<%=sValue %>">



> > You need to put some quotes around the value attribute. 



> > i.e.

> > <input type=text name=custname size=55 maxlength=100 

> > value="<%=detailCust("CustomerName")%>">


  Return to Index