首页 > 开发 > .Net > 正文

aspx如果引用cs中的变量的方法

2019-10-27 13:17:38
字体:
来源:转载
供稿:网友

cs:
public partial class js_picmar : System.Web.UI.Page
{
    protected string s = "错新网";
    protected void Page_Load(object sender, EventArgs e)
    {

        
    }
}
aspx:
<%=s%>
不能为private。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表