I am trying to open a file share link from the window.open ... but its adding the http://localhost/vdir/ before the path can any one say what is the problem?
I have a button that once clicked it open a pdf file in the same window. I need to be able to open in a new window
How can I open this pdf in a new window.
[Code]....
The reason for my request is that before a user click on print report, a user click on a button to make some of the controls on the page grayed out - enabled = false; so when a user click on print report, a pdf document open BUT once he click on return back in the browser, all the controls that were grayed out are back. so how to fix this issue. i thought to open a new window for the pdf.
have a HyperLink control and a grid control on my .aspx page.
When user's start editing the content of the grid control, I create an ascii file and assign the location of the file the Hyperlink control using the following code.
Code:
hyperLinkFileOpen.NavigateUrl = fileName;
When the user's click on the hyperlink control, I want the file to be be opened in a new window. How can I do that? I browsed and found something below. But this doesn't work for my case because the fileName is created on the fly and I won't know the name and path of the file at design time.
I am using VS 2005.An 1.aspx page is there, retrieving data from an xml file and having a button.On a button click same 1.aspx page should open new window retrieving data from another xml file with the help of query string.
In my login page, after login, open default.aspx page with criptManager.RegisterStartupScript(this.Page, this.GetType(), "_opener", "window.open('Default.aspx');", true); but in default.aspx. on button click event ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "_opener", "window.open('Default2.aspx');", true); not running. How to run window.open from my file which is opened with ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "_opener", "window.open('Default.aspx');", true);
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()?
i have an aspx page that loads and displays a text file in a broswer window and it used to work, I made no changes to it and now testing shows additional content appended below the file.
Here is the text file:
testing...
Here is what is displayed:
[Code]....
The additional output looks like the aspx page itself, which has only a close button incase the file load fails.
I need to open the .swf file thru web page on platform window CE. I got a .swf file which is saving in window CE mobile device on path: My DocumentsflashParallelParking.swf. So when user browse the web page thru the mobile device, I need to open up the .swf file which is save in the particular path on the mobile device. I try to using Process() to open the file but hits an RunTime Error: "An Application error occurred on server. The current custom error setting for this app prevents the details of the app. error from being viewed remotely."
Public Partial Class HomePage Inherits System.Web.UI.Page Protected Sub ImageButton5_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton5.Click FileOpen("My DocumentsflashParallelParking.swf") End Sub Public Sub FileOpen(ByVal FileName As String) Dim myProcess As New Process() Try myProcess.StartInfo.FileName = FileName myProcess.StartInfo.Verb = "Open" myProcess.Start() Catch ex As Exception Throw ex End Try End Sub End Class
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.
I am trying to open a popup window from main window using window.open() method. How to get back the value from the called popup window to the calling window in vb.net, basically i need to get back the value and populate in the text box available in the main window.
I tried simple code like this using href element. But it tries to open the sheet.xls in the browser window and says it can't find the file. I want the excel file to be opened in excel (not browser).
In chrome it open new tab but shows popup block url and ask for always allow or block url then we have to give manually always allow and then click on link again open url but in other browser it not even open new tab
I want that whatever link i open in new tab it should be allowed from the code itself. No manual setting should be required.
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]
How do I pass a window name to window.open(url, windowname) programmatically? I am using a user control inside aspx forms. I want the windowname to be different, so from each link a separate window opens.
I have an asp:hyperlink in a .ascx form. The code looks like this:
<asp:hyperlink runat="server" id="xx", navigateurl="is set programmatically" onclick="javascrip:return popup(this, 'my window'; " text="xxx"/> 'my window' needs to be a variable.
I have an aspx page which contains a user control(a gridview). When I click on a link button in the gridview, I will open a popup window(An aspx page) successfully. When I click on save button in the popup, I am saving the details and refreshing the parent page successfully. I have a button in popup window. My requirement is:
When I click on the button inside popup window1, I would like to open another popup(aspx)(Say popup window2) in a new window without closing popup window1. When I save some changes in popup window2 and click on save button in popup window2, I need to close it and refresh popup window1.
we are running a click-to-call service, my idea is basically like this: website have a link on their page, when the link is clicked, a web page(say it is popup.aspx) hosted on our server is popup, user can input their phone number, and click "call me" button to let the website call him. In the button click event, I want to get Request.UrlReferrer, then query the db to get website's phone. But in IE, Request.UrlReferrer is null(firefox is ok, not test chrome yet),my question is how to get opening window' url in IE? we put popup.aspx on our server because
our client website is not force to use asp.net. we have the control what we put on the popup window, and can modify the page just from our side, if we put the pop window on our partner's side, if we have 100 partner, and we change the page's design, we will notify everyone of them to change this, change that. we can implement a statics system to know how popup a day, which site is most popular,etc
I am using the javascript to open a child window using window.showModaldialog(), i have retuen a value from the child page is working fine in IE and firefox but is not working in chrome browser, is there any work around or alternative for it to work in chrome as well.
I using VS2008 and C# for an ASP.NET web application. From within C# code, how to use the "Window.Open" method to create a new browser window? I know it can be done in ASP script code using Javascript but I would like to create new window from C# as desired.
When i try to open a csv file from my asp.net 3.5 app by clicking on the link provided, a file download dialog box appears.When i click on the open button from there , i get this eror
C:Documents and settingsUserNameLocal SettingsTemporary Internet FilesContent.IE5X9TXTM06myfilename.csv could not be found .Check the spelling of the file name and verify that the file locationis correct?
Wjy am i getting this error? I am trying to open a file and it complains about file not found in the Temporary Internet Folder.I tried deleting the temp intrnet files.Dint work.I have IE 7 on xp professional sp3. Also i am streaming the file from the application. This happens only to some files and the rest of the files , i can open .