function doPost()
{
var name="ps1";
window.location="printdetail.aspx?sbzh="+document.Form1.<%=name%>.value;
}
而且这个组件是存在的!它的错误提示是:
Compiler Error Message: CS0103: The name 'name' does not exist in the class or namespace 'ASP.cjmainweb_aspx'
{
var name="ps1";
window.location="printdetail.aspx?sbzh="+document.Form1.<%=name%>.value;
}
而且这个组件是存在的!它的错误提示是:
Compiler Error Message: CS0103: The name 'name' does not exist in the class or namespace 'ASP.cjmainweb_aspx'
public string name;
public class Test : System.Web.UI.Page
{
protected System.Web.UI.WebControls.TextBox TextBox1;
protected string name;