This ASP.NET tutorial explains how to make the TextBox readonly or disabled in ASP.NET.
You can make the TextBox control readonly by setting its ReadOnly property to true. You can set this property in the .aspx page which contains the TextBox control, or programmatically from the code-behind. The next test .aspx page shows this:
ReadOnlyTextBox.aspx
<%@ [...]
