首先我有index.aspx,下面有一个名为index.aspx.cs的ac#类
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Index : Page
{
public string test = "hello";
protected void Page_Load(object sender, EventArgs e)
{
test = "Hello lesley";
}
}
但是,如何在html页面中显示“ test”字符串的值?
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句