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


Similar Messages:

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

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

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

AJAX :: How To Refresh Parent Page Details By Keeping Child Window Open

Apr 28, 2010

I have a screen where on filter icon click on a column i need to show a popup screen or a div looks like popup and in which will have list of check boxes with distinct values of all rows of column one (i.e. the data of popup is like below). All these check boxes are dynamically generated controls.

checkboxcontrol Data1
checkboxcontrol Data2
checkboxcontrol Data3

When user click on any of the above check boxes the parent grid should get refreshed with the filtered data and popup or div tag looks like popup should stay and should not be closed. How do i do this?

The main screen has details like below

Data1 Column2Data Column3Data
Data2 123Data Column3Data
Data2 Column2Data Column3Data
Data3 Column2Data Column3Data

How to refresh my parent page details by keeping my child div tag open or child window open? What is better approach whether to create server side div tag or a modal popup window?

[Code]....

View 4 Replies

Web Forms :: How To Open A New Window And Refresh Old One

Feb 1, 2010

How can I refresh the current page after I opened a new one using javascript. Code below works great if its last command in method but when I add "Response.Redirect(Request.Url.AbsoluteUri) after, it doesn't work anymore.

[Code]....

View 6 Replies

Cannot Refresh The Page After Calling Server Side Code Using Javascript

Apr 4, 2011

I am using Ajax's EnablePageMethods way to call server side code using javascript. The problem is that in IE8 the page automatically refreshes after the ajax call has been completed i.e. the server side function has been executed successfully. I want the same to happen with Chrome and Firefox but it doesnt refresh the page once the server side function has been executed.

I am using this way to call server side code from Javascript -- [URL]

this is the javascript function:

[code]...

this is where i am calling the javascript event:

<a href='myPageName.aspx' onclick='javascript:editNode(1);return false;'>Delete</a>

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

AJAX :: Calling Server Side Events For A User Control Loaded In Update Panel - Refresh Page

May 23, 2010

I need to update datalist in image gallery when fileupload has been completed.

<div style="display: block;">
<div>
<div style="padding-left: 15px; padding-right: 15px;">
<div>
<uc1:ctrlFileUpload ID="ctrlFileUpload1" runat="server" />
<uc2:ctrlImageGallery ID="ctrlImageGallery1" runat="server" />
</div>
<div>
</div>
</div>
</div>
</div>

In the Control File Upload I need to fire the the other ctrl to refresh the page.

<asp:UpdatePanel ID="UpdatePanelUploadArea" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<span>
<asp:FileUpload ID="FileUpload1" runat="server" />
<br />
<asp:Button ID="UploadButton" runat="server" Text="Upload Now" OnClick="UploadButton_Click" />
<asp:Label ID="lblResult" runat="server" ForeColor="#0066FF"></asp:Label>
<br />
</span>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="UploadButton" />
</Triggers>
</asp:UpdatePanel>...........

View 25 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 :: Open A New Browser From Code Behind Without Causing Page Refresh

Feb 12, 2010

I need to implement a "preview" functionality where people make changes to a form, click a button and a pop-up window displays the preview while the original form retains the user's changes in the various <textarea's. Right now, the preview is working, but when they come back to the form, their changes are gone, the page has refreshed. How do I prevent the page from refreshing? I need to go to the server to get the URL to the preview page.

View 6 Replies

Web Forms :: Refresh Parent Window On Close Of Chlie Window

May 14, 2010

I have created an intranet application in ASP. From my main web page I am opening a web browser window and adding a record to database from that new window. Now on close of that window I want to refresh my main web page to reflect the database changes. My backend is "ms access" Also on the other hand I also want to disable the closing button of web browser.

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







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