Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: How to assign ASP varable values to text fields on loading the page


Message #1 by "chandima" <chandima_panditha@h...> on Sat, 22 Feb 2003 02:07:52
Hi, 

I want to assign ASP variable values to text field on-load of the page 

I do not want to do below 
<FORM> 
<input type="text" name="namefield" value=<%=name%>> 
</FORM> 

I want to populate the field when first loaded with initial ASP variable, 
and then have user edit the value of the field. 

Or, can I use JavaScript to do this assign on-loading of the page?? 

Thanks, 
Chandi 

test.asp 

Dim name 

name="Jones" 

form.namefieled.value=<%=name%> ' Can I do this?? 


<FORM> 
<input type="text" name="namefield"> 
</FORM>

  Return to Index