Solved

How to run execCommand inside C#.net? SOS!

Posted on 2003-11-05
3
1,167 Views
Last Modified: 2010-08-05
Hello everyone:

I create a new web application project in VisualC#.net. I put some html tag on it, like 'div'... I am trying to load execCommand function by using C#. I am not writing code in html file. Is this possible?

roughly idea like:
---------------------------------------------------------------------------
using mshtml; (if I am right!)
...

mshtml.HTMLDocument doc;
doc = thispage.getDocument(); // I don't know command, something like this.
// and then
doc.execCommand(a1,a2,a3);
---------------------------------------------------------------------------
Thank you so much! :)
0
Comment
Question by:chaofan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 69

Accepted Solution

by:
Callandor earned 125 total points
ID: 9690363
If you're trying to write html tags to a file using C#, use the XmlTextWriter class.  You can output comments, elements, processing instructions, etc. and then render it with StreamWriter.
0
 

Expert Comment

by:visualhaha
ID: 9690549
Hi Callandor:
Thank you for reply. I am beginner in C#.net.
XmlTextWriter&StreamWriter class may work, but I don't know how to get handle of "IE" which I am just opened.  Thanks again!
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about problems I had with the new location API and permissions in Marshmallow
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Six Sigma Control Plans
Introduction to Processes

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question