How to run execCommand inside SOS!

Hello everyone:

I create a new web application project in 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
Thank you so much! :)
Who is Participating?
CallandorConnect With a Mentor Commented:
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.
Hi Callandor:
Thank you for reply. I am beginner in
XmlTextWriter&StreamWriter class may work, but I don't know how to get handle of "IE" which I am just opened.  Thanks again!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.