在asp.net中,为了把页面中一个名为name的string类型的字段帮定到一个textbox控件的文本属性中,下列代码正确的是()。 Public string name=”诸葛亮”;
A.<asp:textbox id="”TextBox1”" text="”<#%name%"> ”> </asp:textbox>
B. <asp:textbox id="”TextBox1”" text="”<%name%"> ”> </asp:textbox>
C. <asp:textbox id="”TextBox1”" text="”<%#name%"> ”> </asp:textbox>
D. <asp:textbox id="”TextBox1”" text="”<name"> ”> </asp:textbox>
- · 有4位网友选择 A,占比40%
- · 有3位网友选择 B,占比30%
- · 有3位网友选择 C,占比30%