加载时asp.net页面中的问题 [英] problem in the asp.net page at the time of loading

查看:66
本文介绍了加载时asp.net页面中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好先生
每当我每次运行页面时都会发生page_load事件.因此,我无法访问页面.
我写过:-

Hello Sir
when I run my page each and every time page_load event is fiering.By which I could not access my page.
I have written:-

protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            try
            {
                //My Code
            }
            catch(Exception ex)
            {
                Session["error"] = ex.Message;
            }

        }
    }



在不使用我的页面任何控件的情况下,它会自动调用page_load事件.

请帮帮我.

谢谢.



without using any control of my page it is automatically calling the page_load event.

Please Help Me.

Thanks.

推荐答案

如果您的问题是您的页面正在自动调用而无需调用.

1)请检查是否有间隔定时调用页面的计时器.

2)如果您使用母版页,则检查代码是否是您的母版页调用您的页面.
If your question is your page is calling automatically without calling.

1) Please check any timer is there which calling your page with an interval.

2) If you are using master page then check the code may be your master page calling your page.


这篇关于加载时asp.net页面中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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