在用户控件
public string str
{
get
{
return this.Label1.Text;
}
set
{
this.Label1.Text = value;//出了个错未将对象引用设置到对象的实例。
}
}
index.aspx
private void Page_Load(object sender, System.EventArgs e)
{
top t=new top();
t.str="index";
}
不能这么写吗??????????
public string str
{
get
{
return this.Label1.Text;
}
set
{
this.Label1.Text = value;//出了个错未将对象引用设置到对象的实例。
}
}
index.aspx
private void Page_Load(object sender, System.EventArgs e)
{
top t=new top();
t.str="index";
}
不能这么写吗??????????
((UCCommandQuery)Query).str= "index";