473,698 Members | 2,883 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Execute Local File within .aspx page

Ok,
I've searched the web and newsgroups for a week now with no concrete
answer. Question: How, if possible, can you either navigate to or get a
listing of a directory to load on an asp page and then doubleclick or
hyperlink the files to execute locally. I have already tried the
file:///C:\.... approach, but that opens the whole pc to the user, which I
don't want to do. I'd like everything to stay within the web application as
far as directory browsing. Ideally, users will be given their own directory
either on C: or in inetpubs/wwwroot and a login ID will dictate which folder
they have access to (Folder name = UserID). I remember using the old Shell
command in VB desktop apps to call the application to open a specific file.
I will be supporting multiple file types that are opened by up to 6
different aplications in the folders. No C# code, VB only, the boss is a
numnutts over that, he's gonna be supporting it to some extent. Also, can
you create a folder in a directory using asp.net? I have never been asked
to create local directories by using a web page before. Any help
appreciated.

RD22 - the dyslexic robot
Nov 18 '05 #1
1 2317
Without an activeX control you can't execute a file locally. Also, you
probably won't be able to get this to work under sp2 even with an ActiveX
control (that's a good thing, in my mind this is a security flaw.)
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
304
by: bbenham | last post by:
In the Code-Behind file for a Specific page I'm doing, I am using Server.Execute("anotherpage.aspx", writer) to retrieve the resulting output of a different aspx page, which I am maniuplating etc. A page within a page concept. My problem, is that no matter what I seem to do, the Session scope does not appear to be available within the Code-behind for the "anotherpage.aspx" if I execute it with the Server.Execute() method. If I execute...
1
1272
by: steve_o | last post by:
I have had to create a new project file to update a deployed asp.net application. I then built the project and using "Copy Project" to deploy to the live server. Now when the application tries to use code that I have updated, it crashes with the following error trying to reference the local file on my development machine snip ------------------ Object reference not set to an instance of an object. Description: An unhandled exception...
2
1963
by: Chuck Haeberle | last post by:
We have a page which sends a copy of itself via email to customers. To enable this, the page calls Server.Execute on itself into a text stream and strips its own output down to HTML presentable to the customer. In our Test environment (but not our DEV or Local envs) we are experience an ASP.NET lockup. The WHOLE asp.net architecture freezes, and we must reboot the server before any of our other ASP.NET apps will work. This is a...
9
2384
by: tshad | last post by:
I have an example I copied from "programming asp.net" (o'reilly) and can't seem to get the Sub (writefile) to execute. It displays all the response.write lines that are called directly, but not any of the response.write lines from inside the sub. ******************************************* <%@ Application Language="VB" %> <script runat="server">
6
4744
by: Sam | last post by:
My problem is that when I am trying to use Server.Execute("Somehandler.ashx") I am getting HttpException. System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +3179617 System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean...
1
1850
by: Lopamudra | last post by:
Hi, I have implemented a HTTPHandler named ThumbnailGenerator.ashx to generate thumbnails for images. I have referenced this within my aspx file in the ImageUrl property of the Img control. When I debug the ashx page by setting it as the start page, the handler executes ( and also writes a debug line on the Application event log). But when I debug the aspx page, it sets the ImageUrl property and executes properly, but doesnt seem to...
2
3922
by: Oscar | last post by:
What's the right coding to open another aspx page within server side vb.net (not within the html) ? In case I only code Server.Execute("page2.aspx") with a VB.net Subroutine, the browser shows a mess of both page 1 and page 2 within the same window.
4
2557
by: john_smith_nebraska | last post by:
I am using VISTA . I have IIS enabled . I installed VS 2005 successfully. Under old ASPX you knwo you go to inetpub wwwroot and run a test default.aspx file to see if it executes properly. I pulled a starter program from Microsoft site and pasted it into VS 2005 at the default.aspx page of a new wesite called website1. I made sure website1 was added into IIS and was running.
3
3018
by: =?Utf-8?B?THVpZ2k=?= | last post by:
Hi all, how can I execute a SSIS Package from an aspx page in C#? I'm using .NET 2.0. Thanks a lot. -- Luigi http://blogs.dotnethell.it/ciupaz/
0
8610
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8873
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4623
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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 we have to send another system
2
2339
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.