For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > March 2008 > Difference between two ways to set Text in a TextBox ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Difference between two ways to set Text in a TextBox ?
Moe Sisko

2008-03-31, 6:13 am

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.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com