问题描述
我有一个div说_dvTest和按钮_btnTest.我正在尝试添加一个ajaxModalPopUpExtender,其中TargetControl是_btnTest,而PopupControlID/OkControlID是_dv
如果我将AjaxPopUpExtender设置为Enabled = True,则它没有按钮用于回发页面.
万一我将其设置为false,那么对于第一次加载它就可以正常工作.但是一旦我调用_modalPopUp.Show(),然后再次返回到第一点. 它不允许页面回发"
我在代码后面有一些逻辑,可以显示modalPopUp或通过.
即
I have a div say _dvTest and button _btnTest. I am trying to add an ajaxModalPopUpExtender where TargetControl is _btnTest and PopupControlID/OkControlID is _dv
If i set AjaxPopUpExtender as Enabled = True then it does not the button to postback a page.
incase i set it to false then for the first load it works fine. but once i call _modalPopUp.Show() then again back to point one. "it does not let page to post back"
I have some logic at code behind to either show modalPopUp or to pass through.
i.e
_btntest_Click(Object, EventArgs)
{
IF IsValid() THEN
_modalPopUp.Show()
ELSE
Response.Redirect("....")
}
注意:第一次加载时,它运行得很好,但是如果我关闭modalpopup并再次单击_btnTest,则此时它不允许按钮回发并检查逻辑.它只显示modalPopUp
请提出建议,我该怎么办?
Note: At first load it runs very well but if i close the modalpopup and again click on _btnTest, at this time it does not let the button to postback and check for the logic. it just display the modalPopUp
Please suggest, what shall i do?
推荐答案
这篇关于以编程方式显示AjaxModalPopUp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!