如何在asp.net中单击AjaxTabpanel时打开弹出窗口
我有一个 web 应用程序,我有一个 ajaxTabed 界面。我想在单击选项卡面板时打开弹出窗口。我创建了 Javascript 函数,并在选项卡面板 OnclientClick 中调用该函数,然后运行该应用程序。然后它不显示选项卡,只显示白色页面。在这里我发布了我所做的代码。请检查一次,给我任何可以更改代码的建议......
Tabpanle
<cc1:TabPanel runat="server" HeaderText="Documents" OnClientClick="openwindow(),return false;" ID="TabPanel4">
<ContentTemplate> </ContentTemplate>
</cc1:TabPanel>
Javascript
<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>
请帮助我如何在客户端点击事件的 tabpanel 上打开弹出窗口。 。
I have web application in that I have a 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. 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
<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...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,检查您的 OnClientClick 定义。
当你输入“openwindow(),return false;”时,你应该写“openwindow(); return false;”
First, check your OnClientClick definition.
When you put "openwindow(),return false;", you should have written "openwindow(); return false;"