开发者

What is the difference between add 'text' property or directly use within tags?

开发者 https://www.devze.com 2023-03-26 17:48 出处:网络
for example : what is the exact difference between following statements: <asp:TextBox ID=\"TextBox1\" runat=\"server\">hi</asp:TextBox>

for example :

what is the exact difference between following statements:

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

and

    <asp:TextBox ID="TextBox1" runat="server" text="开发者_运维知识库HI"></asp:TextBox>


There is Simply No Difference.

You can change the text of both texboxes from code behind using textbox1.text = "something".

0

精彩评论

暂无评论...
验证码 换一张
取 消