Difference between two ways to set Text in a TextBox ?

M

Moe Sisko

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,737
Latest member
Georgeengab

Latest Threads

Top