开发者

asp.net page lifecycle [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_StackOverflow Closed 12 years ago.

How to get post back data in page pre-init stage? Can I do that?


Use the

Request[key] 

dictionary directly

EDIT: But, as Oded said, no ASP.NET "services". You get the raw post back data and have to do everything self.

EDIT2:

var val = Request["NAME_OF_MY_HTML_INPUT_ELEMENT"];

not testes, but should also work:

var val = Request[myHiddenFieldControl.UniqueID];


No, you can't.

Post back data is not available at that point as can be seen here.

If the request is a postback, the values of the controls have not yet been restored from view state.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜