473,473 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

javascript to open a file from local settings temp folder

40 New Member
Hi I used the following script in my aspx.cs page for opening a xml file in new window,

Expand|Select|Wrap|Line Numbers
  1. StringBuilder strScript = new StringBuilder();
  2.         strScript.Append("<script language='javascript' type='text/javascript'>");
  3.  
  4.        strScript.Append("window.open(belva_14_02_2009518.xml','access','left=0, top=0, toolbar=no,menubar=no,width=1000,height=8000,resizable=yes,scrollbars=yes');");
  5.         strScript.Append("</script>");

it works fine.. for the file being in application folder itself.
How to open a xml file from local settings temp folder and display in new window..

i tried giving 'C:\\Documents and Settings\\AS\\Local Settings\\Temp\\belva_14_02_2009518.xml' for the filename.. but it shows nothing.

Please reply asap.

Thanks in advance
Dec 2 '09 #1
1 4533
Dormilich
8,658 Recognized Expert Moderator Expert
How to open a xml file from local settings temp folder and display in new window..
do you mean on the client or the server?

if it’s on the client, you may have a chance with IE and very liberal security settings, on the server you can only access files somewhere in the server’s root directory
Dec 2 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Sylvain Demers | last post by:
Hi, Yesterday, I had a problem with Visual Studio.NET. It was impossible to build my solution. I had a lot of errors like: Satellite build for culture 'fr' failed. The assembly linker could...
26
by: Don | last post by:
I'm writing an html page with some JavaScript that reads a web page into a client-side temp file, then reformats it, then submits that same file as a URL to the browser for display, via...
4
by: Yuri Vorontsov | last post by:
Hallo! We have troubles (post XP SP2) to open local folders from the web application: - the web application allows users to select a local file (input type=file) - the system DOES NOT upload...
3
by: Ronan Dodworth | last post by:
Hi there I'm having a little bit of a problem with my customvalidator control. The problem is the javascript runs fine on my local webserver IIS but not when I post it to the web hosting server....
4
by: Goober | last post by:
I have a dotnet web app that opens & works fine. There's another application on the same server, in a folder below the web application. Both web apps are set up as virtual directories there and...
0
by: Niyazi | last post by:
Hi, I created application that store the data in SQL SERVER that reside on network. The client also use this application to access the resources provided with application. But is the client want...
8
by: k.i.n.g. | last post by:
Hi ALL, I am a newbee programmer and started of with python recently. I am trying write a script which backups outlook (.pst ) files everytime I shutdown my system. I have writtern following...
3
by: Andy2500 | last post by:
Sorry that I use the new post because when I replied in the old one, nothing display ! here is the code of the simplest example with its errors : ...
0
by: Andy | last post by:
Thanks Peter, I thought I'd give an update on this problem. My application had 2 assemblies that contained classed for the Data access and business logic layer. It was on one of them that I was...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.