[英]How to open a popup window when click on AjaxTabpanel in asp.net
I have web application in that I have a ajaxTabedinterface. 我有Web应用程序,因为我有ajaxTabedinterface。 I want open the pop-window when I click on tab-panel for this.
单击此选项卡面板时,我想打开弹出窗口。 I have created Javascript function and I call this function in tab-panel OnclientClick, and I run the application.
我创建了Javascript函数,并在选项卡面板OnclientClick中调用此函数,然后运行该应用程序。 Then it doesn't show Tabs it show just white page only.
然后它不显示选项卡,而仅显示白页。 Here I have post my code what I did.
在这里,我发布了我的代码。 Please check it once give me any suggestion where I can change the code .....
请检查一次,给我任何建议,我可以在这里更改代码.....
Tabpanle 塔板
<cc1:TabPanel runat="server" HeaderText="Documents" OnClientClick="openwindow(),return false;" ID="TabPanel4">
<ContentTemplate> </ContentTemplate>
</cc1:TabPanel>
Javascript Java脚本
<script type="text/javascript" language="javascript">
function openwindow() {
retVal = window.open("AllClients.aspx", null, "left=150px,menubar=no, top=150px, width=800px, height=450px, scrollbars=no, status=no, resizable=no");
retval.focus();
}
</script>
Please help me how to open a popupwindow on tabpanel onclient click event... 请帮助我如何在tabpanel onclient click事件上打开弹出窗口...
First, check your OnClientClick definition. 首先,检查您的OnClientClick定义。 When you put "openwindow(),return false;", you should have written "openwindow(); return false;"
当您输入“ openwindow(),return false;”时,您应该已经写过“ openwindow(); return false;”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.