This is a discussion on How to open a file with its default program within the ASP and ASP.NET Programming forums, part of the Web Development category; hi, Using the file uplaod control i have stored a file in a specific path and i dont know to ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| hi, Using the file uplaod control i have stored a file in a specific path and i dont know to open that file in there default program when clicking some button or link buttonso pls help me thanks |
| Sponsored Links |
| |||
| hi, Plz try this following coding,U can open the file with its default program. For this include using System.Diagnostics;->namespace Process p = new Process(); ProcessStartInfo psi = new ProcessStartInfo("C:/Documents and Settings/Desktop/Changes1.txt"); psi.UseShellExecute=true; psi.WindowStyle=ProcessWindowStyle.Normal; p.StartInfo=psi; p.Start(); |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to Open a .pdf file on an AJAX enabled site? | kingmaker | ASP and ASP.NET Programming | 0 | 08-25-2007 03:01 AM |
| how to open and retrive text file(.txt)? | una_noche | Java Server Pages (JSP) | 1 | 08-17-2007 03:27 AM |
| when the program is executing,how to stop the program and open the cmd window... | bluesky | C# Programming | 1 | 07-25-2007 05:51 AM |
| How do you open a file for writing? | vadivelanvaidyanathan | Perl | 1 | 07-17-2007 03:25 AM |
| How to Open a HTML file inside Flash | Balasubramanian.S | Flash Actionscript Programming | 8 | 03-28-2007 09:54 AM |