<%Response.Write("你好啊"); %>//这个是在其中嵌入代码

 

    <!--<div></div>-->//xhtml的注释

 

<%=字段或属性或方法(必须是公共的) %> 

 <asp:Label ID="Label1" runat="server" Text='<%#this.DropDownList1.SelectedValue %>'></asp:Label> //红色部分可能不会智能提示.

数据绑定:将存储在数据源,公共成员,显示 在控件中.不同于  <%=TestString %>的是,需要调用Page.DataBind();

 

 

 <%$ConnectionString:LinkString %>   冒号前面的表示表达式的类型,后面表示要解析的表达式

 

 类型有:AppString, ConnectionString,Resources

 

 

 

 

相关文章:

  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2021-04-21
猜你喜欢
  • 2021-11-27
  • 2021-11-24
  • 2021-07-11
  • 2021-10-06
  • 2021-07-13
  • 2021-07-18
  • 2022-01-23
相关资源
相似解决方案