0

I am creating a form and need to display data from a database as read only. Is there a way to do this?

Example:

Client Name: Fred's Trucking

Fred's Trucking would be from the database.

4 Answers 4

1

Just display this data in a static control (I.e label, read only text box, etc).

Sign up to request clarification or add additional context in comments.

Comments

0

Just display the data. Your code is what makes it read only. Use an asp:label instead of a form control.

Comments

0

www.ASP.net has a variety of examples

Walkthrough: Basic Data Access in Web Pages

http://msdn.microsoft.com/en-us/library/tw738475.aspx

Comments

0

Assuming that you would want to display "Fred's Trucking" in a TextBox control, a TextBox control has a "ReadOnly" property that you would set to "True".

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.