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
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...
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
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...