Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Weird Quirk


Message #1 by Scott Watermasysk <swatermasysk@C...> on Tue, 27 Feb 2001 17:23:41 -0500



I am trying to give my site visitors the chance to edit data they might have

submitted earlier.



Everything works great except for simple text boxes.



When I try to display what has already been submitted everthing after the

first space in the response gets truncated!



<TD><INPUT TYPE="text" Name="ClientContact" Value = <%=ClientContact%>></TD>



Is there something I am missing?



If the the record was Joe Bob and I ran the above code, only Joe would be in

my text box.



Thanks,

Scott

Message #2 by "Owen Mortensen" <ojm@a...> on Tue, 27 Feb 2001 15:56:25 -0700
Put quotes around the variable:



<TD><INPUT TYPE="text" Name="ClientContact" Value

="<%=ClientContact%>"></TD>



Owen



-----Original Message-----

From: Scott Watermasysk [mailto:swatermasysk@C...]

Sent: Tuesday, February 27, 2001 3:24 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Weird Quirk









I am trying to give my site visitors the chance to edit data they might have

submitted earlier.



Everything works great except for simple text boxes.



When I try to display what has already been submitted everthing after the

first space in the response gets truncated!



<TD><INPUT TYPE="text" Name="ClientContact" Value = <%=ClientContact%>></TD>



Is there something I am missing?



If the the record was Joe Bob and I ran the above code, only Joe would be in

my text box.



Thanks,

Scott



Message #3 by "Ray Smith" <raysmith@r...> on Tue, 27 Feb 2001 16:53:35 -0600
You have to put the Value in quotes so it will read past the space. try

this:

<td><input type="text" name="ClientContact" value

="<%=ClientContact%>"></TD>





Ray



----- Original Message -----

From: "Scott Watermasysk" <swatermasysk@C...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Tuesday, February 27, 2001 4:23 PM

Subject: [asp_web_howto] Weird Quirk





>

>

> I am trying to give my site visitors the chance to edit data they might

have

> submitted earlier.

>

> Everything works great except for simple text boxes.

>

> When I try to display what has already been submitted everthing after the

> first space in the response gets truncated!

>

> <TD><INPUT TYPE="text" Name="ClientContact" Value 

<%=ClientContact%>></TD>

>

> Is there something I am missing?

>

> If the the record was Joe Bob and I ran the above code, only Joe would be

in

> my text box.

>

> Thanks,

> Scott

Message #4 by "Curtis F. Barnett" <cfb@s...> on Tue, 27 Feb 2001 17:15:18 -0600
Scott...

You need to encapsulate the variable <%=ClientContact %> in quotes (").



CFB



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

> From: Scott Watermasysk [mailto:swatermasysk@C...]

> Sent: Tuesday, February 27, 2001 4:24 PM

> To: ASP Web HowTo

> Subject: [asp_web_howto] Weird Quirk

> 

> 

> 

> 

> I am trying to give my site visitors the chance to edit data they 

> might have

> submitted earlier.

> 

> Everything works great except for simple text boxes.

> 

> When I try to display what has already been submitted everthing after the

> first space in the response gets truncated!

> 

> <TD><INPUT TYPE="text" Name="ClientContact" Value = 

> <%=ClientContact%>></TD>

> 

> Is there something I am missing?

> 

> If the the record was Joe Bob and I ran the above code, only Joe 

> would be in

> my text box.

> 

> Thanks,

> Scott



Message #5 by "Wally Burfine" <oopconsultant@h...> on Tue, 27 Feb 2001 23:46:43 -0000
You are missing the quotes.



Regards,

Wally





>From: Scott Watermasysk <swatermasysk@C...>

>Reply-To: "ASP Web HowTo" <asp_web_howto@p...>

>To: "ASP Web HowTo" <asp_web_howto@p...>

>Subject: [asp_web_howto] Weird Quirk

>Date: Tue, 27 Feb 2001 17:23:41 -0500

>

>

>

>I am trying to give my site visitors the chance to edit data they might 

>have

>submitted earlier.

>

>Everything works great except for simple text boxes.

>

>When I try to display what has already been submitted everthing after the

>first space in the response gets truncated!

>

><TD><INPUT TYPE="text" Name="ClientContact" Value = 

><%=ClientContact%>></TD>

>

>Is there something I am missing?

>

>If the the record was Joe Bob and I ran the above code, only Joe would be 

>in

>my text box.

>

>Thanks,

>Scott




  Return to Index