发布网友
发布时间:2022-04-27 16:49
共5个回答
懂视网
时间:2022-04-27 21:10
代码如下:
protected void btnSearch_Click(object sender, EventArgs e)
{
System.Web.UI.Page motherPage = this.Page;
Type pageType = motherPage.GetType();
//这里用到了反射
System.Reflection.MethodInfo mi = pageType.GetMethod("BindSearchDataToGridView"); //"BindSearchDataToGridView"为.aspx页面文件的方法
string txtValue= TextBox1.Text;
string ddlvalue= DropDownList1.SelectedValue.ToString();
mi.Invoke(motherPage, new object[] { ddlvalue, txtValue});
}
public static void bind()
热心网友 时间:2022-04-27 18:18
{
绑定DROWPDOWNLIST
}
page load ()
{
if(!ispostback)
{
bind();
}
}
public void 创建新分类()
{
bind();
}创建分类成功的同时,重新对DrowpDownlist进行数据绑定。
热心网友 时间:2022-04-27 19:36
ajax,定时向服务器请求更新
热心网友 时间:2022-04-27 21:11
重定向
热心网友 时间:2022-04-27 23:02