Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Opening HTML editor, NOTEPAD in C#

0 views
Skip to first unread message

Mitesh

unread,
Oct 3, 2002, 11:30:20 AM10/3/02
to
hi

i want to open any html editor like notepad , and open a
selected html file from my computer in this
editor........its a web application....How can i do
that?... Please let me know as soon as possible......

Your reply is really appreciated

Thanks alot

Anand Narayanaswamy [MVP]

unread,
Oct 4, 2002, 2:25:33 AM10/4/02
to
Hello Mitesh,

You can use the start method of Process class found in
System.Diagnostics namespace to fire up notepad from your
applications.

System.Diagnostics.Process.Start("notepad.exe")

You can make the Notepad to wait till you exit by using
WaitForExit() method of Process class.

System.Diagnostics.Process p = System.Diagnostics.Process.Start
("notepad.exe","sample.txt");
p.WaitForExit();

Regards,
Anand N
Microsoft MVP
www.learnxpress.com

www.eXPerienceDotNet.com - The hottest destination for .NET!


"Mitesh" <mitesh_b...@hotmail.com> wrote in message
news:f05f01c26af1$c88e8080$37ef2ecf@TKMSFTNGXA13...

_CorExeMain [.NET MVP]

unread,
Oct 4, 2002, 3:05:04 AM10/4/02
to
Hi!

If you are wishing to open this file at the server side, then use the Start
method of the Process class (system.Diagnostics namespace), passing it the
name of the file to be opened.

However, at the client end, you cannot execute an application. So, you
should consider an alternative scenario.
--
Kumar Gaurav Khanna
*************************************************************************
"I can't be Garbage Collected... I am pinned to .NET"
WinToolZone @ http://www.wintoolzone.com/
eXPerience.NET @ http://www.experiencedotnet.com/

"Mitesh" <mitesh_b...@hotmail.com> wrote in message
news:f05f01c26af1$c88e8080$37ef2ecf@TKMSFTNGXA13...

Mitesh

unread,
Oct 4, 2002, 4:18:47 PM10/4/02
to
hi
thanks for reply........but basically i want user to
modify that file in html editor..........so i have to
open html editor and after user make changes it should be
saved too...any way any idea for this

Mitesh

_CorExeMain [.NET MVP]

unread,
Oct 5, 2002, 1:20:02 AM10/5/02
to
Hi!

Well, it isn't possible to invoke an application at the client side.
however, what you can do is that read the HTML file, and send it to the
client, setting the contenttype property of the Response object to indicate
that its a Word file. Since Word can process HTML documents, and edit them,
your purpose will get solved.

--
Kumar Gaurav Khanna
*************************************************************************
"I can't be Garbage Collected... I am pinned to .NET"
WinToolZone @ http://www.wintoolzone.com/
eXPerience.NET @ http://www.experiencedotnet.com/

"Mitesh" <mitesh_b...@hotmail.com> wrote in message
news:1038f01c26be3$3ea45320$37ef2ecf@TKMSFTNGXA13...

0 new messages