sAutoMenuItem_Click(this, e);
sAutoMenuItem_Click(null, null);//为空,强制执行。
sAutoMenuItem_Click(this.sAutoMenuItem, e);
sAutoMenuItem_Click(this.sAutoMenuItem, EventArgs.Empty);
//参考下面代码,出自http://topic.csdn.net/t/20040709/09/3158677.html
Page_Load:
CommandEventArgs args = new CommandEventArgs("hello","hello,world");
Button1_Command(null,args);
...
if (args.CommandName == "hello")
Response.Write(e.CommandArgument);
参考文献:
http://topic.csdn.net/t/20061128/13/5190950.html
http://topic.csdn.net/t/20040709/09/3158677.html
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7946503/viewspace-1002752/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/7946503/viewspace-1002752/