Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 21st, 2007, 10:57 AM
Authorized User
 
Join Date: Feb 2007
Location: , , USA.
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
  #2 (permalink)  
Old November 21st, 2007, 11:28 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

What is the code you are currently using?

-Peter
  #3 (permalink)  
Old November 21st, 2007, 11:53 AM
Authorized User
 
Join Date: Feb 2007
Location: , , USA.
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
  #4 (permalink)  
Old November 21st, 2007, 05:14 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:59 PM.


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