开发者

ASP.NET PreInit() and IsPostBack property

What does PreInit() do by checking IsPostBack property?

Genererally while explaining PreInit() lot webpages s开发者_运维技巧ay it checks IsPostBack property. But they don't tell what will PreInit do if IsPostBack is true or IsPostBack is false?


It's explained here ( http://msdn.microsoft.com/en-us/library/ms178472.aspx ) that you can use the value of IsPostBack to determine if it's a postback or not. If it is a postback the values of the controls on the page will not be set yet.


If page is posted, role of preinit to load the data existed on page before post.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜