Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I NEED TO ASSIGN A TEXTBOX A VALUE

Status
Not open for further replies.

aviles22

Programmer
Jun 27, 2000
25
US
MY PAGE STARTS OUT WITH BLANK TEXTBOXES. I WANT TO ASSIGN THEM DIFFERENT VALUES THROUGH ASP HOW.

IS IT LIKE?

TEXTBOX1_VALUE = "WHATS UP DUDE"
 
Is this what you mean?
here's a sample of the fields

<p>First Name: <input type=&quot;text&quot; name=&quot;FirstName&quot; size=&quot;20&quot;></p>
<p>Last Name:<input type=&quot;text&quot; name=&quot;LastName&quot; size=&quot;20&quot;></p>
<p>Phone Number: <input type=&quot;text&quot; name=&quot;PhoneNumber&quot; size=&quot;20&quot;></p>

Hope this helps...
QUOTE OF THE DAY
The only ideas that will work for you are the ones you put to work.
<%
Jr Clown
:eek:)
%>
 
I think you are wanting to programatically assign values to the text boxes. First you have to have a way to refer to them, and to do that, you have to give your form a name, and then you refer to the different elements by dot notation...

Example:
Code:
<form name=myForm method=post action=&quot;somePage.asp&quot;>
  <input type=text name=myElement>
</form>
You can then refer to them (and assign their values) by saying:
Code:
document.myForm.myElement = value

hope it helps! :)
Paul Prewett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top