asp.net,c#.net Read Only Field
<p>I have a textbox.Texbox is readonly. And on Page_Load the Texbox automaticlly displayed
with a value from the data base.i have a 'if' loop for check the text box value is null
or not.But i cant retrive the textbox value.What may be the reason for that?
my web page code is</p>

<pre><code>&lt;asp:TextBox ID = "text1" runat="server" ReadOnly="true" &gt;&lt;/asp:TextBox&gt;
&lt;asp:DropDownList ID="DropDownList1" runat="server" Visible="False"&gt;
&lt;/asp:DropDownList&gt;`
</code></pre>

<p>code behind</p>

<pre><code>if (text1.Text == "")
{
    DropDownList1.Visible = true;
} 
</code></pre>

<p>but  DropDownList1 is not displayed</p>
