Create Asp.net application for "Open a web page (.aspx) in new window or new internet explorer window"

Hi,

I want to Create Asp.net application which ca Open a web page (.aspx) in new window or new internet explorer window.

Any code....
Vikrant,
.Net Software Developer,
Mumbai.
0
vikrant
5/14/2008 11:41:58 AM
asp.net.web-forms 93655 articles. 5 followers. Follow

2 Replies
1416 Views

Similar Articles

[PageSpeed] 16

vikrant.waghmare:
Hi, I want to Create Asp.net application which ca Open a web page (.aspx) in new window or new internet explorer window. Any code....
 

 

Hi if you are clicking on a hyoerlink then write the code as

<a href="NewPage.aspx" target="_blank">Click to Open a New Page</a>

If this is useful, then don't forget to mark this as answer. 

Thank you. Smile


Please don't forget to mark the post as Answer, that helps you.

Thank you. Yes
0
Sudheendra
5/14/2008 12:18:23 PM

or if you want this in a button click use the following code in your button click event,

Dim popupscript As String = "<script language='javascript'>" + "window.open('NewPage.aspx');</script>"

Page.ClientScript.RegisterStartupScript(Me.GetType(), "PopUpWindow", popupscript, False)

 

Hope this will work Smile

0
joseabie
5/14/2008 12:23:33 PM
Reply:

Similar Artilces:

"new tab" should create a new window if there is no open window.
Name: Adam Kramer Email: adik-mozillaatilovebacondotorg Product: Firefox Release Candidate Summary: "new tab" should create a new window if there is no open window. Comments: ....that's it...I just keep hitting command-T and then having to command-N. Browser Details: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9b5) Gecko/2008032619 Firefox/3.0b5 From URL: http://hendrix.mozilla.org/ ...

"Move tab to new window" is wanted; "Open in new window" is faulty.
Name: Michael Email: keybounceatgmaildotcom Product: Firefox Summary: "Move tab to new window" is wanted; "Open in new window" is faulty. Comments: Right now, tabs in FF 3.5.2 have "Open in new window". What they need is "Move tab to new window". The problem? The page is fully reloaded from scratch. Not all pages can be reloaded. Even if it doesn't look like a PUT, not all GETs return the same page. Even when they do, it may result in a lot of re-processing of javascript, etc. From URL: http://hendrix.mozilla.org/ Note to ...

"Open", "Open in new window", "Open in new tab" are greyed-out after drag&drop operation
Name: Dmitriy Email: dadotivanovathotmaildotcom Product: Firefox Release Candidate Summary: "Open", "Open in new window", "Open in new tab" are greyed-out after drag&drop operation Comments: Steps to Reproduce: 1. Drag&drop a bookmark from the Bookmarks Menu or Bookmarks Toolbar to the Tab bar. 2. Right-click on any bookmark (from the same folder, if darged from Menu, or from the visible part of Bookmarks Toolbar) Result: "Open", "Open in new window", "Open in new tab" are greyed-out Browser Details: Moz...

Difference between "Creating new website" and "Creating new web project"
Hello (Using VS2008) I would like to know the difference between "Creating a New Website" and "Creating a New Web project". Thanks a lot. Hi, the first one creates a web site using the web site project model (default in VS2005) which is based on that you don't have a standalone project file, but project contents are defined by physical directory structure. Basically a web site project has also slightly different compilation model, for example not everything in the project is necessarily built into single assembly, and you don't necessarily ha...

shifting "open in new tab" and "open in new window" in firefox 2
Name: Markus Gr�rmann Email: randale-mail_at_gmx.de Product: Firefox Summary: shifting "open in new tab" and "open in new window" in firefox 2 Comments: Heyho! In firefox 2, opening new pages in a new tab instead of a new window is the standard setting. But ifyou right-click on a random link to open it either in a new window or a new tab, the option on top of the right-click-menu is "open in new window" you have to scroll down to open the link in a new tab. To support tabbed browsing as well as possible, the option to open links in a new tab s...

superreview requested: [Bug 275430] change "open links from other applications" to be "a new tab in the most recent window" instead of "the most recent tab/window" : [Attachment 177848] Patch to make
Jeremy Morton <bugzilla@game-point.net> has asked Ben Goodger <bugs@bengoodger.com> for superreview: Bug 275430: change "open links from other applications" to be "a new tab in the most recent window" instead of "the most recent tab/window" https://bugzilla.mozilla.org/show_bug.cgi?id=275430 Attachment 177848: Patch to make externally-launched links open in new window https://bugzilla.mozilla.org/attachment.cgi?id=177848&action=edit ...

superreview cancelled: [Bug 275430] change "open links from other applications" to be "a new tab in the most recent window" instead of "the most recent tab/window" : [Attachment 177848] Patch to make
Mike Connor <mconnor@steelgryphon.com> has cancelled Jeremy Morton <bugzilla@game-point.net>'s request for superreview: Bug 275430: change "open links from other applications" to be "a new tab in the most recent window" instead of "the most recent tab/window" https://bugzilla.mozilla.org/show_bug.cgi?id=275430 Attachment 177848: Patch to make externally-launched links open in new window https://bugzilla.mozilla.org/attachment.cgi?id=177848&action=edit ------- Additional Comments from Mike Connor <mconnor@steelgryphon.com> New ...

"Visual Studio .NET cannot create or open the application. Web site 'http://localhost/2373/Labs/Lab071' not started on this Web server. "
i wanted to create a New Project, with Visual Basic Projects as Project Type, and ASP.NET Web Application as the selected Templates. However, there was an error message pop up saying these: "Visual Studio .NET cannot create or open the application. Web site 'http://localhost/2373/Labs/Lab071' not started on this Web server. " How may i overcome it? Is 2373 already a directory in your web root? How about Labs? It might have something to do with subdirectories, have you tried creating one just off the route? Ala: http://localhost/labs071 ? You might want to try to see if tha...

New tab to opening instead of window when "New Window" option set
Name: Trevor Lohrbeer Email: trevordotlohrbeeratgmaildotcom Product: Firefox Release Candidate Summary: New tab to opening instead of window when "New Window" option set Comments: Clicking a link with target="_blank" causes a new tab to open instead of a window, even when the "New pages should be opened in" setting under Tools > Options > Tabs is set to "New window" Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b4) Gecko/2008030714 Firefox/3.0b4 From URL: http://hendrix.mozilla.org/ ...

Entering data in old aspx form only after saving data in new web form opened in new window
Dear all, i am facing a problem. please solve it. i have created two .aspx pages, say, page1.aspx and page2.aspx. with the help of client-side javascript i am opening page2.aspx from page1.aspx in a new window. So, page1.aspx and page2.aspx remains open at the same time. what i want is, i don't want the user to able to activate or enter data in page1.aspx without saving data in page2.aspx. regards subhajit use window.showModalDialog() instead of window.open() when the child window is closed, in this case, program execution continues on the next line after the showModalDialog...

Internet Explorer 6 SP1 Update: "HTTP 404
This update resolves an issue after you apply the cumulative security patch for Internet Explorer that is included in Microsoft Security Bulletin MS03-032, you may receive an error message when you try to visit Web pages that are opened by JavaScript functions in frames or in windows. http://makeashorterlink.com/?X45222D26 -- Regard: Joh@nnes "In GOD we Trust...all others must use a Digital Certificate" How do you find out about these updates? Where is the link to these, say staring at http://www.microsoft.com/windows/ie/default.asp Will these show up in Windows Update...

Get rid of "Windows Internet Explorer" in title of new IE window..
Does anyone know how that is done :) ...Page.Title only adds to the title of the window  NuwandaYou learn from experience, everything else is just information.  get rid of this post maybe? :)You learn from experience, everything else is just information. Nuwanda: Does anyone know how that is done :) ...Page.Title only adds to the title of the window Nuwanda Hi Nuwand, As far as I know, it is not possible to achieve this for the reason the title 'Microsoft Internet Explorer' is set in the Internet Explorer itself and a web page has no permission to chang...

"Web Form" missing from Add New Item dialog window
Yet another bug with VS2005... Using File->New->File or right click on a project and select "Add New Item" brings up a dialog box that "Web Form" is missing from. I cannot add new web forms to any web projects this way, I have to copy and paste other ASPX pages to add new files. It happens when logged in as any user on my machine. I tried mucking around with the template files but they all look right. I rant into the same thing some time ago, maybe this is an obscure bug, or maybe not.  See this: http://forums.asp.net/1172691/ShowPost.aspxgabriel magaña M...

Problem with opening new window "window.Open" using javascript
I am trying to open new window when press a button "btnPrint" using: Response.Write("<script language='javascript'> window.open('CouponReport.aspx', 'window', 'HEIGHT=600,WIDTH=820,top=50,left=50,toolbar=yes,scrollbars=yes,resizable=yes'); </script>"); but when the new window opened the current page do a post back action and the current page format change like the following: before window open: after window opened: So, how i can a void the post back action.  <script language='javascript'> funct...

"New window" should make a copy of the "old window", keeping the "history".
Name: Kevin Ong Email: kevinwtcathotmaildotcom Product: Firefox Summary: "New window" should make a copy of the "old window", keeping the "history". Comments: I like Firefox very much, mainly because it's faster than Internet Explorer. There's really only one function I really miss. It is Internet Explorers function when you open a new window (ctrl+n). In IE the whole new window is an exact copy of the one you open it from - you get the same page and keep the "history". So you can for example click back and it takes you one page...

Web resources about - Create Asp.net application for "Open a web page (.aspx) in new window or new internet explorer window" - asp.net.web-forms

Resources last updated: 1/23/2016 12:34:00 AM