Difference between two ways to set Text in a TextBox ?

Discussion in 'ASP .Net' started by Moe Sisko, Mar 31, 2008.

  1. Moe Sisko

    Moe Sisko Guest

    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.
     
    Moe Sisko, Mar 31, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jakk
    Replies:
    4
    Views:
    12,605
  2. Replies:
    9
    Views:
    355
    Karl Heinz Buchegger
    Nov 21, 2005
  3. thinktwice
    Replies:
    2
    Views:
    803
    thinktwice
    Aug 25, 2006
  4. Replies:
    13
    Views:
    454
    Antoninus Twink
    Apr 18, 2009
  5. agb

    writing two textbox's text in one textbox

    agb, Aug 26, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    187
    Ken Cox [Microsoft MVP]
    Aug 27, 2003
Loading...

Share This Page