回发期间的ispostback属性 [英] ispostback property during the postback

查看:72
本文介绍了回发期间的ispostback属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果在回发期间将page.load设置为false,会发生什么情况?

if page.load during postback is made false what happen ?

推荐答案

请按照MSDN中的文章进行操作.
这是所有asp.net开发人员必须阅读的内容.

http://msdn.microsoft.com/en-us/library/ms178472.aspx [ ^ ]

希望您能消除困惑.

欢呼
Follow the article in MSDN.
This is a must read for all asp.net developers.

http://msdn.microsoft.com/en-us/library/ms178472.aspx[^]

Hopefully, you will get your confusion clear.

cheers


"...回发期间的page.load设置为false .." ---什么?没有page.load属性,而IsPostBack是只读属性,程序员无法设置.
"...page.load during postback is made false.." --- what??? there is no page.load property and IsPostBack is a readonly property which cannot be set by the programmer.


没有这样的Page.Load属性...而不是Page Load事件被称为每次页面加载或刷新时&在此方法中,您可以检查页面是否以以下方式发回...

There is no such Page.Load Property...rather than Page Load is event called every time when page is load or refresh & within this method you can check page is post back or not in follwing way...

protected void Page_Load(object sender, EventArgs e)
    {
        if (Page.IsPostBack == false)   // call when page is not post back
        {
    }
    else
    {
    }
    }


这篇关于回发期间的ispostback属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆