pageLoad第一次不触发 [英] pageLoad not firing for first time

查看:89
本文介绍了pageLoad第一次不触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

在我的应用程序中,我正在使用responce.redirect方法重定向到另一个页面,
它工作正常,意味着页面正在重定向,但页面加载未首次触发.
如果单击任何按钮,则仅触发PageLoad事件.
为什么会这样?

Hi all

In my application i am using responce.redirect method to redirect to another page,
it is working fine means page is redirecting but page load not firing for first time.
if we click any button then only PageLoad event firing.
why this is happening?

推荐答案

感谢所有人
这是我的错误,
我在此页面中写了OnLoad方法,在该页面中我写了if(Page.IsPostBack == true).
我删除了它,它现在可以正常工作
Thanks to all
its my mistake,
i wrote OnLoad method in this page and in that page i write if (Page.IsPostBack == true).
I removed it and it is working fine now


将您的代码发布在您要重定向的页面女巫上……..
post your code written on page witch you want to redirect .....


这篇关于pageLoad第一次不触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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