Solved

How to do a pop-out window in asp.net?

Posted on 2004-10-13
3
236 Views
Last Modified: 2008-03-17
Where should I add the action in?
I want something like when user click on the button, it will pop-out the page with a new window.

should I add the action in
===========================================
private void btnSubmit_Click(object sender, System.EventArgs e)
            {
            
            }
============================================

or add in HTML code
===========================================
<asp:Button id="btnSubmit" style="Z-INDEX: 117; LEFT: 427px; POSITION: absolute; TOP: 273px" runat="server" Text="Submit"></asp:Button>
===========================================
0
Comment
Question by:p931226
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Expert Comment

by:stumpy1
ID: 12297458
Example to use a hyperlink to open Newpage.aspx in a new IE window

HyperLink linkItem;
linkItem = new HyperLink();
linkItem.NavigateUrl = "Newpage.aspx";
linkItem.Target = "_blank";
0
 
LVL 5

Accepted Solution

by:
kollu earned 40 total points
ID: 12299526
You can try this one
TableRow rowNew = new TableRow();                              rowNew.VerticalAlign = VerticalAlign.Top;
tblName.Rows.Add(rowNew);  \\table name is server side control
Str = "<img src=image.gif border=0 alt='' style = cursor:hand onclick=JavaScript:OpenpopUp();>";      
TableCell cellNew = new TableCell();
cellNew.Text = Str;                              rowNew.Cells.Add(cellNew);

in aspx file you can write Javascript function
function OpenpopUp()
{
var x=window.open("Openpage.aspx");
}
0
 
LVL 5

Expert Comment

by:kollu
ID: 12474547
Thank you for accepting my answer.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSRS Deployment problem 5 125
Need to find a web event on the IIS server 4 54
aspx ascx, c# 7 43
EF5 How do I stop pre-compiled views? 8 54
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question