更新时间:2023-12-05 15:01:40
从asp.net代码中注册javascript代码。
Register javascript code from asp.net code behind.
protected void Page_Load(object sender, EventArgs e)
{
string js = "function test(){alert('hello')'}";
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "k1", js, true);
}