ispostback总是返回false [英] ispostback is always returning false
本文介绍了ispostback总是返回false的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我有一个asp.net页面和一个gridview.在后面的代码中,我正在执行以下操作
Hi
I have an asp.net page and a gridview. And in code behind, i am doing as below
Page_Load()
{
if(!isPostBack)
{
//so that this will enter only when page loads for the first time.
}
}
但是我的问题是,每当我执行回发时,ispostback都会返回false并在page_load中进入循环.请帮忙.
在此先感谢
Naina
But my problem is whenever i do a postback, ispostback is returning false and entering the loop in page_load. Kindly help.
Thanks in advance
Naina
推荐答案
请检查此链接,希望它可以帮助您 http ://forums.asp.net/t/1031283.aspx [ ^ ]
please check this link hope it can help you http://forums.asp.net/t/1031283.aspx[^]
我也已经尝试过了.我想补充的一点是,它仅在编辑网格时发生
I have already tried this also. One more point i would like to add is , it happens only on editing the grid
这篇关于ispostback总是返回false的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文