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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Text Box Value Equal to a Variable

Status
Not open for further replies.

kelfuego

MIS
Jun 5, 2002
74
US
Can someone please help me set a text box value equal to a variable?

I have a value that is stored in a variable that I want to appear in my text box instead of simply using a response.write command.

Kelly Johnson MCP
Volunters of America Oregon
 
This is the only way to do it unless you want to try and pass your variable to some client-side script and set the text box value to your variable value, but that doesn't make a whole lot of sense.
<input type=&quot;text&quot; name=&quot;myTextbox&quot; value=&quot;<%=myVariable%>&quot;>
 
Thank you that was exactly what I was looking for. Sorry I'm still pretty new to ASP.

Kelly Johnson MCP
Volunters of America Oregon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top