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

if field is not null or not empty then read only

Status
Not open for further replies.

evr72

MIS
Dec 8, 2009
265
US
Hello,

I am trying to set a field not to be editable if the field has been filled.

Not sure how to tackle this one

any help is appreciated

Thank you!!
 
Essuming you mean in a HTML form, you can't, ASP runs on the SERVER and has no interaction with the client browser.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
 
Make the fields style status disabled if there is content in them. You can check in ASP if the variables have values that you want to load into the HTML input boxes, and put the inline style description based on their content.
 
Thank you AyacLab,

I will give it a go. Not sure exactly how but will google it.

I appreciate the guidance!!
 
Make the fields style status disabled if there is content in them.

Or write them as straight text (not in an input) if there is content.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top