Web Forms :: Open Page In New Window From Menu Selection?

Apr 5, 2010

I am trying to integrate classic asp pages with the new .net pages. my asp.net site uses a master page, so I want to pop up the old pages in their own window, how can i do that from the menu selection?

View 5 Replies


Similar Messages:

Web Forms :: OnClick, Add Ddl Selection To Url And Open New Window?

Mar 6, 2010

I am trying to open a new window on a button click event. I have seen several similar threads on this topic, but none worked for what I am trying to do.What I am trying to do...

- select an item from a dropdownlist

- click a button

- on the button click, open a new window (preferably 500 x 600) and go to a url based upon the selected ddl item

What is actually happening...

- a new tab is opening

Here is the .aspx

[Code]....

When the user selects an item in the dropdownlist and then presses the button, a new window opens and goes to a url based upon the selecteditem in the dropdown list. For example, if the user selects "10" from the ddl, then pressing the button should open a new window and go to ~/NewPage.aspx?id=ref#10
Here is the .aspx.cs

[Code]....

Rather than opening a new window, it opens a new tab (in Firefox). How do I get it to open a new window? I would prefer to open a window that is about 500 x 600 and has no menu or scroll bars.I would prefer to not use javascript because of the pop-up blocker in IE. (see an example here at my blog for an example why - clicking on "reply to this post" doesn't work in IE because I used javascript, but it works in all other browsers).

Note: You may notice that I repeat the same code in the ddl selectedindexchanged event and the button click event. This is because only placing it in the button click event required two clicks (the first only sets the attribute). I couldn't figure out any other way to do it. If you know a better way, feel free to suggest one and I will mark it as an answer if it works. But, my real concern is the question about opening a new window.

View 3 Replies

Web Forms :: Close Popup Window And Open Page In Parent Window?

Mar 10, 2011

I have a login page that is loaded in popup window (colorbox) and after user logs in it should be closed and parent window should be loaded with new page.

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Do While reader.Read()
If Trim(reader("ZAP").ToString()) = Trim(textBoxZap.Text) Then
Session("A") = "1"
Response.Redirect("~/default.aspx")
Else
lblErr.Text = "incorect"
End If
Loop

So once the buton is clicked and user name and password is corect popup window should be closed and user redirected to default aspx.

View 1 Replies

AJAX :: Show (Open) Modal Popup Window On DropDownList Item Selection

May 7, 2015

How to open Popup Window from dropdown list ...... [URL] .... Like this link but open in dropdown selected item.

View 1 Replies

Web Forms :: How To Open The Redirected Page From Iframe To Open In The Parent Window

Feb 17, 2011

I have an asp.net page that contains an Iframe embedded with some data and a ImageButton. On ImageButton click event (server side) I have Response.Redirct:

Response.Redirect("results.aspx");

This always open the results.aspx in iframe. I want that results.aspx should always open in the parent window. I tried the following till now but none worked:

Response.Redirect("<script language='javascript'>self.parent.location='results.aspx';</script>");
Response.Redirect("javascript:parent.change_parent_url('results.aspx');");
..and also tried the options from [URL]

View 1 Replies

How To Open Full Size Window / Toolbar / Address Bar And Menu Should Be Hidden Using Javascript

May 25, 2010

How to open full size window. Toolbar, address bar and menu should be hidden

View 2 Replies

Web Forms :: Menu Selection For Front Page?

Mar 10, 2011

I need to code a e-commerce site but about the front end I thought about building a "flowing" menu, how it works is, in the top row you have "Retail" and "Wholesale", if I move my mouse over the retail word I want in the next row, data to be loaded like the main categories if you clicked a category word, then in the 3rd row you get the sub categories then you can click on a subcategory name and then a 4rth row will appear with more subcategories, and so on and on, the reason for this is that the business has alot of sub categories going very deep down,

View 1 Replies

Web Forms :: Passing Values From One Page To Popup Window Based On Checkbox Selection

Dec 13, 2012

In VB.net .... I have GridView from which i select list of rows using check box and upon clicking the button i need to display those selected rows in a gridView of another page. and that  page is a popup window?

View 1 Replies

Web Forms :: Open PDF To Particular Page In New Tab Or Window

Nov 8, 2010

I have a PDF help document that I would like to store on the server. When a user is on the site and clicks on the help link, I would like it to open the PDF help document and go to a particular page, depending on where the user was when they clicked on the link. For example, if they are on the Staff Projections page when they clicked the help link, I would like the PDF to open in a new tab and automatically go to page 32 which contains information about Staff Projections. I am running .NET 3.5, and the company uses Internet Explorer 8.

View 2 Replies

Web Forms :: How To Redirect To Page Or Open Page In New Window Using LinkButton

Feb 22, 2014

So I understand that the HperLink is a Client Side Control but I need code behind so that I can store the click event in the database.  If I use the Link button, I have the opposite issue where I can access the client side but cannot open the url since this control does not have the NavigateUrl attribute.

<asp:HyperLink ID="hlnkCompanyName" runat="server" NavigateUrl='<%# Eval("CompanyAdRedirectURL") %>'

View 1 Replies

Web Forms :: Web.sitemap - Page Not Open In New Window

Mar 15, 2010

I have a web.site map that works fine with the exception of opening a page in a new window. The page opens, just not in a new window and I can't figure out what I am doing wrong.

<siteMapNode
url="Part3.aspx"
title="Part
III Practice Component"
description=""
<siteMapNode
url="InterviewLog.pdf"
title="Print
Version Guide and Log"
description=""
roles=""
target="_blank"
<siteMapNode
url="EnrollmentForm.pdf"
title="Enrollment
Form"
description=""
roles=""
target="_blank"
siteMapNode>

View 3 Replies

Web Forms :: Code To Open Page In New Window

Jan 8, 2010

Supporting an application and I have never seen any link building like this, tried what I know. Whaty I need to do is open this link in a new window.

addLink("Program Help", "Program help.", "tdHelp", "http://sharepoint/JFHQ/JSTAFF/J1/Internal/J13/SAD%20Application%20Help/Home.aspx")

View 7 Replies

Web Forms :: Open An Aspx Page With New Window?

Mar 25, 2011

In my web application i have three buttons. Submit,Server Update and Delete. If i click on the submit button then all the information will be stored and remain in the same page.after that if i click on the server update button then all the same information will be stored in the another server.and it is open with new window.after that when i am clicking on the submit button then it will go to the next page with another window.i have to go to next page with same window.my code is

<asp:Button ID="ButtonServerUpdate" runat="server" Text="Server Update" Width="80px"
Height="25px" onclick="ButtonServerUpdate_Click" OnClientClick = "document.forms[0].target = '_blank';"/>
<asp:Button ID="ButtonSubmit" runat="server" Text="Submit" Width="80px"
Height="25px" onclick="ButtonSubmit_Click"/>

How can i solve this?

View 1 Replies

Web Forms :: Open Aspx Page In New Window?

May 21, 2010

On button click im using this Server.Transfer("abc.aspx", true); to transfer to abc page..what i need is i need to open in new window by this abc.aspx page on button click..here im passing parameter to abc.aspx page, so let me know how to do...

View 7 Replies

VS 2010 - Change Menu Items On Master Page Depending On Content Page Selection

Feb 15, 2012

I have a master page with an unordered list that contains items like, Home, Messages etc.

Now I am working on an EditProfile.aspx page and I want the menu to change and have items like Basic Information, Profile Picture etc. Sort of like facebook. What is the best way to accomplish this...

View 2 Replies

Web Forms :: To Open Window In New Page On Button Click?

Sep 28, 2010

Here's my code

[Code]....

My url here opens in same page...how can i open my url in new page...redirecting to diff pages on each condition..how can i use windows.open function here to open up link in new window.

View 5 Replies

Web Forms :: Open Page In New Window And Send Data?

Dec 21, 2010

I've been trying this for 2 days. In ASP.NET and VB.NET I've page1.aspx and page2.aspx I would like when I press button1 in page1.aspx to trigger button1.click event and open a page2.aspx in a new window and send to it data. All this can easly be done if no new window, by Server.Transfer or Response.Redirect. But unfortunatly they don't have an option to open a new window. I've used this solution but can't send the parameters and it opens me [URL]

[Code]....

and the javascript is:

[Code]....

View 2 Replies

Web Forms :: Open New Window When Using Send Message To Page

Jul 27, 2012

In my code i hv link button which source part and code part are described below

Source:<asp:linkbutton id='LnkComment" runat="server" onclick="LnkComment_click"></asp:linkbutton>

Code :

protected void lnkcomment_click(object sender,eventargs e)
{
sendmessagetothepage("comment")
}
IN Web.config
<rewriterules>
<rule source=(.+)/(.+)/comments.aspx" destination="comments.aspx?Ctype=$1 $amp;secid=$2"/>

I want to open this page in new window.

View 1 Replies

Web Forms :: Open Another Page In A Popup Window When Click On Image?

May 2, 2010

How to open a page in popup window of Calendar size. The page contains a default asp.net calendar. In first page there is a formview and inside a formview there is an image. I want that when user click that image a popup will appear having calendar on that page.

View 4 Replies

Web Forms :: Force A Page To Open In Parent Frame (whole Window)?

Jun 25, 2010

Is there any way to force a page (that opens in an iframe) to load in the parent frame (whole page/window)?

I am in a scenario where I really had to use iframes to maintain my website branding because my eCommerce provider does not support customizations. When Payment is made, I would like my TransactionComplete.aspx to open in the parent frame and not within the same child frame.

View 3 Replies

Web Forms :: Open New Window From Server Side Without Page Refresh

May 7, 2015

How to open in new window on button click in asp.net without page refreshment ....

View 1 Replies

Web Forms :: Open New Window From Server Side Without Page Reload

May 7, 2015

i am try this code to open popup window  popup window is open but page is reload

asp:DropDownList ID="ddlname" runat="server" CssClass="textbox2" AutoPostBack="True" OnSelectedIndexChanged="ddlname_SelectedIndexChanged"></asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*" ControlToValidate="ddlname" Display="Dynamic" Font-Size="Larger" ForeColor="Red" ValidationGroup="addp" InitialValue="--Select--"></asp:RequiredFieldValidator>

protected void ddlname_SelectedIndexChanged(object sender, EventArgs e)
{
if (ddlname.SelectedValue == "New")
{
Response.Write("<script language='javascript'>window.open('AddSupplier.aspx','Popup','width=550,height=370,left=350,top=200,resizable=no')</script>");
}

i also use update panel then popup window cant open....

View 1 Replies

How To Pass A Parameter To The Child Window From Parent Window Using Window.open

Oct 18, 2010

i have an aspx page in which a link in the grid view opens a popup page . the data in the grid view would be dynamic and i need to send the id of the row of grid while calling the child window. i get the id using sender.id, but how would i send this using window .open()?

View 2 Replies

Web Forms :: Why Refresh Page And There Is One Window Open Let Choose Retry Or Cancel

May 15, 2010

When I refresh the page in IE. It showed one window and say: if you don't resend the information then you cannot refresh the page, choose retry to resend the information and choose cancel to cancel it.

How can i change code to delete such window when I refresh page? My page is [URL]

View 9 Replies

Forms Data Controls :: Can Use GridView CommandField Open A Page In A New Window

Aug 25, 2010

I'm using a GridView hooked up to an AccessDataSource holding details of books. The GridView has a CommandField which I want to act as a link to another page (called "showBook.aspx"). This page will have a DetailsView which I want to use to show the details of the selected book. I want this page to open in a new window.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved