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


Similar Messages:

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

Open A Model Window In Server Side?

Oct 3, 2010

window.href(fileDocmodel='~/../DocTokenPass.aspx?pageopen=DocTokenPass&');

it local open

but server side not open modal window

View 2 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

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 New Browser Window Via Code Behind Side

May 15, 2010

I want to pass these properties:

width=800,height=800,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,s tatus=no,left=50,top=0

following two lines i am using with aspx / vb.net codebehind side to open a new browser window: want to pass above properties, is it possible?

Dim url As String = Session("gDocScanURL") & "ScanDocument.aspx?XYFileDocID=" & iDocID & ""

Response.Write("<script>var w=window.open('" + url + "'); w.focus();</script>")

View 3 Replies

VS 02/03 Using Window.opener.location.reload(); In IE7 To Refresh Parent Page?

May 16, 2010

I have a web page that opens another web page in a pop up window. I would like to refresh the parent page when the submit button is clicked on the pop up page. I tried using window.opener.location.reload(); in IE7 but nothing seems to be happening.

View 15 Replies

Web Forms :: Reload The Parent Browser Window From Client Browser Window In Codebehind?

Sep 27, 2010

Im calling the new popup window from gridview like

[Code]....

In the AddTargetPopUP.aspx ,I have button Call "ADD".When i click the add button it'll insert datas into database.I want to reload the parent gridview after insert into the database and want to close the popup.

View 4 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 :: Server Side Popup Window Not Getting Displayed?

May 17, 2012

ClientScript.RegisterStartupScript(this.Page.GetType(), "", "window.open('Print.aspx','Print','scrollbars=yes,height=400,width=900');", true);

i have the above line executed on a button click  but the page does not seem to appear

View 1 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

Web Forms :: Close Popup Window By Server Side Code?

Jan 5, 2011

I open a popup window by client code. Now I want to do some calculation on this popup window & if it success then I want to save the calculation result in a session variable and close the window. I mean I want to click a button on popup window, it will do some calculation on server side and if it success the it will store the calculation result in a session variable and close the popup window.

View 6 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 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

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 :: How To Force Reload Of Pop Window - Odd Behavior In IE

Jan 13, 2010

I have a gridview control where clicking on a specific row saves an ID number to session("ReportID") and then brings up a popup window. The popup window checks session("ReportID") on load and then displays the correct report information. This setup seems to work fine in Firefox and Safari, but for some reason IE is not refreshing the popup window. I'm trying to figure out a way to force IE to refresh/reload the popup window like it does in firefox/safari. If the popup is not refreshed then it won't update the information on page_load. Code below:

[Code]....

I thought that window.open should automaticly reload the page in the called popup window as this is what FF and safari seems to do, but maybe not. I think that the javascript .reload() may force IE to refresh the popup, but I don't know what the correct syntax would be.

View 9 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 :: Call Server Side Method On Browser Window Close Button

Oct 26, 2012

How to call the server side method on browser window close button...

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







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