如何将 Editor1 作为参数传递:
在我的 aspx.cs 中,我正在调用同一项目的 .cs 文件中的函数,如下所示:
protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
DropDown abs = new DropDown();
abs.dd(this.DropDownList2, this.DropDownList3);
}
.CS 文件代码
public void dd(DropDownList DropDownList2, DropDownList DropDownList3)
{
//My code which contains DropDownList2 DropDownList3 and Editor1
}
我得到的错误是:
Error 1 The name 'Editor1' does not exist in the current context
我通过 DropDownList2 和 DropDownList3 的方式我无法通过 Editor1(它是一个 ajax 控件)。我如何通过它?