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

locking text field 1

Status
Not open for further replies.

Trillithium

Technical User
Dec 9, 2000
27
0
0
NL
Hi,

Is it possible to lock a text field form object with ASP. If so, how??.

Thanks..

 
If you mean "lock" so that nobody can type in it then the best way to do it is using JavaScript (or even HTML). I don't know of any way to do it using ASP. Mise Le Meas,

Mighty :)
 
Hi, me again,

Can you tell me how to lock it with HTML..
 
You can lock it using HTML by typing the following:

<INPUT TYPE=&quot;TEXT&quot; NAME=&quot;TEXTNAME&quot; READONLY>

I'm not too sure about cross-browser compatability on the readonly attriute.

To do it simply using JavaScript, you could do something like:

<INPUT TYPE=&quot;TEXT&quot; NAME=&quot;TEXTNAME&quot; onFocus=this.blur()>
Mise Le Meas,

Mighty :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top