Solved

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

Posted on 2004-10-13
3
237 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

635 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