在ButtonClick上从弹出页面重定向到父页面

问题描述:

在我的项目中,有一个名为DefaultTimesheet.aspx的页面包含搜索"按钮.
当我单击搜索按钮popupWindow Search.aspx打开,并且DefaultTimesheet.aspx页面将褪色. Search.aspx包含确定"和取消"两个按钮.当我单击确定"按钮时,应关闭弹出窗口,取消淡化DefaultTimesheet.aspx并将值返回到DefaultTimesheet.aspx,但是当我单击确定"或取消按钮时,将获得另一个弹出窗口.我该如何解决这个问题..........任何人请帮助我....

谢谢....

In my project am having a page named DefaultTimesheet.aspx contains Search button.
When i clicked on search button popupWindow Search.aspx opens and the DefaultTimesheet.aspx page will be faded. Search.aspx contains two buttons ok and cancel. when i clicked on ok button it should close the popup Window, unfade the DefaultTimesheet.aspx and return a value to DefaultTimesheet.aspx but when i clicked on ok or cancel button getting one more popup Window. How can i solve this problem.......... anyone plz help me....

Thanks....

看看是否有帮助: ^ ]
See if this helps: Partial update of parent page via AJAX (ASP.NET 2.0) on close of a child window - conditionally[^]