C# 什么是页面 __EVENTARGUMENT?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/611295/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 10:14:22 来源:igfitidea点击:
What's Page __EVENTARGUMENT?
提问by Amr Elgarhy
I saw code like this:
我看到这样的代码:
if (this.Request["__EVENTARGUMENT"] == "Flag")
//DoSomthing...
What does __EVENTARGUMENT
mean and are there some parameters like it to access?
是什么__EVENTARGUMENT
意思,是否有一些类似的参数可以访问?
采纳答案by Jon Skeet
It can be set by calls to __doPostBack
in the JavaScript on the page.
它可以通过__doPostBack
在页面上的 JavaScript 中调用 来设置。
This articleexplains it in a bit more detail.
这篇文章更详细地解释了它。