Difference between two ways to set Text in a TextBox ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Moe Sisko

    Difference between two ways to set Text in a TextBox ?

    Very basic question - is there any difference between the following two
    lines :

    <asp:TextBox ID="TextBox1" runat="server"
    Text="hello"></asp:TextBox>

    <asp:TextBox ID="TextBox2" runat="server" >hello</asp:TextBox>

    i.e. it seems there are two ways to set the text of the TextBox, which seem
    to have the same effect.

    Thanks.


Working...