|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
HTML TextArea with ASP
I am trying to do a check to see if a value of one of my fields is a certain number. If it is I want to display a form text entry box, if not skip it. I want to put a value of another field in the text entry box so the user can edit/update the info. I have the code to display or not display, but when I try to display the value in the text entry field, I get quotes around it. My syntax is below.
Response.Write("<td> <textarea name=""cStatUnit1"" cols=""70"" rows=""10"">"""&rstblrinews.Fields.Item("cStatUnit1").Value&"""</textarea>") If I take a " from each side of the variable, it does not work, like this it displays the date with " around the text. Can someone please help me figure how to get this displayed without quotes? Thanks, |
|
#2
|
|||
|
|||
|
Quote:
The problem is you have to many quotes going on. You have the value inside quotes so therefore it's going to display inside quotes. Try this on for size. Code:
Response.Write("<td> <textarea name=""cStatUnit1"" cols=""70"" rows=""10"">" & rstblrinews.Fields.Item("cStatUnit1").Value& "</textarea>")
|
|
#3
|
|||
|
|||
|
I prefer writing asp tags inside html code, instead of writing html codes using response.write. My code would be:
Code:
<td><textarea name='<%= cStatUnit1 %>' cols='70' rows='10'> <%= rstblrinews.Fields.Item("cStatUnit1").Value %></textarea>
Oh! BTW, hello everyone. This is my first post to the forums. I am an absolute begginer in MySQL and ASP. Regards.
__________________
Sweet smell of a great sorrow lies over the land. Plumes of smoke rise, merge into the leaden sky. A man lies and dreams of green fields and rivers, but awakes to a morning with no reason for waking. He's haunted by the memory of lost paradise. In his youth or dream, he can't be precise. He's chained forever to a world that's departed. It's not enough, it's not enough. Gilmour |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > HTML TextArea with ASP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|