开发者

Open and Close Popup windows without Javascript in ASP.NET

How can I Open and Close Popup windows without Javascript in ASP.NET开发者_运维知识库?


What do you mean "Popup windows".

JavaScript allows you to manipulate the properties of a window object allowing you to remove the status bar, address bar, set the size and position of the new window and other things.

The only other way (short of using VB script :) is to have links with target set to _blank. But then you can't customise the new window.


You can't.

Opening and closing popups implies javascript code execution on the client side.

You could eventually create an ASP.Net panel that looks like a popup and set it visible/invisible during the postback but it won't behave like a 'real' popup.


Unless otherwise but I conquer with @Olivier that you can't do that without using Javascript. Even with the solution given by @Avi, you are still using Javascript though it is kinda abstracted from you.

Maybe, you could explain why you don't want to use javascript because even without the AjaxControl, it is kinda pretty easy to open and specify other properties of pop up windows.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜