在ASP.NET中单击HyperLink时打开一个新的小窗口 [英] Open a new Small Window when clicking a HyperLink in ASP.NET

查看:546
本文介绍了在ASP.NET中单击HyperLink时打开一个新的小窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的超链接看起来像这样



< asp:HyperLink ID =帮助runat =serverNavigateUrl =〜/ FP / Help.aspx? ID_Question = 1Target =_ blank>帮助说明



此代码希望新页面...新的整页..如何设置它像一个小窗口一样打开,例如width = 300和height = 250(一种PopUp)

解决方案

你需要使用Window.Open [ ^ ]。



例如:



 window.open(  http://manasbhardwaj.net
mywindow menubar = 1,resizable = 1,width = 300,height = 250) ;


My hyperlink looks like this

<asp:HyperLink ID="Help" runat="server" NavigateUrl="~/FP/Help.aspx?ID_Question=1" Target="_blank" >help Instructions

This code hopens a new page .. a new full page.. how can I set it that way to open like a small window, for example with width=300 and height=250 (Kind of a PopUp)

解决方案

You need to use the Window.Open[^] in JavaScript.

For e.g.:

window.open ("http://manasbhardwaj.net",
"mywindow","menubar=1,resizable=1,width=300,height=250");


这篇关于在ASP.NET中单击HyperLink时打开一个新的小窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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