Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now