如何在asp .net中打开新的浏览器窗口? [英] How to open a new browser window in asp .net ?

查看:188
本文介绍了如何在asp .net中打开新的浏览器窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生


我已经在ASP.NET Web表单中使用了GridView控件,并在其上放置了一个按钮字段.我希望当我单击按钮字段时,应该打开一个新的浏览器窗口.我怎样才能做到这一点 ?请帮我...

谢谢

Sir


I have taken a GridView control in asp .net web form and put a button field on that.I want that when i click on button field a new browser window should open. How can I do that ? Please help me...

thanks

推荐答案

使用Window.open

Use Window.open

<INPUT Type="button" OnClick="window.open(''" + url + "'', ''_blank'', ''height=500,width=800,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,titlebar=no '');";"/> 


这篇关于如何在asp .net中打开新的浏览器窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆