Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 21st, 2007, 10:57 AM
Authorized User
 
Join Date: Feb 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to Open Url

Hi All,

I have collection of Url's in my list box ,and these url's contain path to some .js files. What I want is that when user double click on of these url, file should open in notepad. Currently am opening a file in firefox. I don't want to download the file I just want to open a file. So am not using web.Client.DownLoad()
Any Idea please help.

thanks,


A.Asif
__________________
A.Asif
 
Old November 21st, 2007, 11:28 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

What is the code you are currently using?

-Peter
 
Old November 21st, 2007, 11:53 AM
Authorized User
 
Join Date: Feb 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by planoie
 What is the code you are currently using?

-Peter

Process.Start("firefox.exe", fullPath); //Where fullPath is url

i.e-->http://www.epakbundle.com/en/on/home/some.js

I would like to ope some.js in notepad

Thank-you


A.Asif
 
Old November 21st, 2007, 05:14 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You can use the HttpWebRequest class to get the file from the URL, then save the stream to a file, then use the process.start call you have but replace firefox with notepad.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Open modal window and pass back url to parent nambati Javascript 3 March 23rd, 2010 08:03 AM
I am not able to open my reports in with URL sha_shivani Reporting Services 2 June 12th, 2007 01:49 AM
I am notable to open my reports through URL sha_shivani BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 1 May 10th, 2007 04:14 PM
ADODB.Stream Open via URL (Unspecified error) blackadder_ba2 Classic ASP Components 2 December 7th, 2005 01:30 AM
ASP ADODB.Stream Open via URL (Unspecified error) blackadder_ba2 Javascript 0 December 5th, 2005 02:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.