Populate data in text box
-
Hi all, Im having a bit of trouble displaying data from a field into a textbox. I should mention that this is a web application that is doing a select statement and then populating the data into a textbox. The problem is that one of the fields has spaces in it. If i try to display the data into a text box using this code: My Label Only the first word of the sentence is coming up. Is there a reason for this and a way around it? Any help would be greatly appreciated. Thanks
-
Hi all, Im having a bit of trouble displaying data from a field into a textbox. I should mention that this is a web application that is doing a select statement and then populating the data into a textbox. The problem is that one of the fields has spaces in it. If i try to display the data into a text box using this code: My Label Only the first word of the sentence is coming up. Is there a reason for this and a way around it? Any help would be greatly appreciated. Thanks
Your question really belongs in the ASP.NET Forum since it really has nothing to do with VB/VB.NET. Only the first word is showing up because once objRS() is evaluated, the HTML becomes:
<input TYPE=text NAME=txtield_nameF SIZE=50 VALUE=Whatever objRS returned here>
You might want to type enclosing the objRS() code in quotes:
<input TYPE=text NAME=txtield_nameF SIZE=50 VALUE="Whatever objRS returned here">
But, then again, I'm no expert in ASP... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Your question really belongs in the ASP.NET Forum since it really has nothing to do with VB/VB.NET. Only the first word is showing up because once objRS() is evaluated, the HTML becomes:
<input TYPE=text NAME=txtield_nameF SIZE=50 VALUE=Whatever objRS returned here>
You might want to type enclosing the objRS() code in quotes:
<input TYPE=text NAME=txtield_nameF SIZE=50 VALUE="Whatever objRS returned here">
But, then again, I'm no expert in ASP... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
Dave, Sorry about posting it in the wrong forum. Just goes to show what 2.00am will do to you :) Anyway your spot on just needed to enclose the objRS and it worked like a treat. Again appreciate the help :) Nic