Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Difference between two ways to set Text in a TextBox ?

Reply
Thread Tools

Difference between two ways to set Text in a TextBox ?

 
 
Moe Sisko
Guest
Posts: n/a
 
      03-31-2008
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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the difference of those two ways of passing parameters wudehui2006@gmail.com C Programming 13 04-18-2009 02:46 PM
what's the difference betwwen these two ways to use std::ofstream thinktwice C++ 2 08-25-2006 05:44 AM
the difference among these ways of swapping two ints storyGerald@gmail.com C++ 9 11-21-2005 12:32 PM
Difference between bin and obj directories and difference between project references and dll references jakk ASP .Net 4 03-22-2005 09:23 PM
writing two textbox's text in one textbox agb ASP .Net Web Controls 1 08-27-2003 12:57 AM



Advertisments