Click here to Skip to main content
16,004,806 members
Home / Discussions / C#
   

C#

 
AnswerRe: Redirecting to a new .aspx page Pin
leppie9-Jul-08 2:37
leppie9-Jul-08 2:37 
AnswerRe: Redirecting to a new .aspx page Pin
ITS79-Jul-08 10:53
ITS79-Jul-08 10:53 
Questioniis pick up service Pin
shababnet9-Jul-08 2:26
shababnet9-Jul-08 2:26 
QuestionIndex was outside the bounds of the array Pin
NewToAspDotNet9-Jul-08 1:45
NewToAspDotNet9-Jul-08 1:45 
AnswerRe: Index was outside the bounds of the array Pin
leppie9-Jul-08 1:48
leppie9-Jul-08 1:48 
GeneralRe: Index was outside the bounds of the array Pin
NewToAspDotNet9-Jul-08 1:55
NewToAspDotNet9-Jul-08 1:55 
AnswerRe: Index was outside the bounds of the array Pin
User 66589-Jul-08 1:53
User 66589-Jul-08 1:53 
QuestionIHTMLDOCUMENT2 AND SOURCECODE Pin
ITS79-Jul-08 1:44
ITS79-Jul-08 1:44 
Hi everybody

I hope I ask my question in the right place.
I want to access to source code of a WEBPAGE and change it.
For this, use mshtml.HTMLDocument2.
Usually I write source code with a StreameReader on Object IHTMLDocumetn2.
The output of StreamReader is perfect.
But after writing the output on IHTMLDocument2 something strange happens.
some quotation marks and backslashes disappear and the header changes.
Codes are as below:

string Content = MyStreamReader.ReadToEnd();
HTMLDocument MyDoc = new HTMLDocumentClass();
IHTMLDocument2 DocToUse = (IHTMLDocument2)MyDoc;
DocToUse.write(Content);
DocToUse.close();



Here the content and DocToUse.body.parentElement.outerHTML.ToString() should be excatly
the same but they are not. For better understanding please find the 2 screenshots.

Output of StreamReader: Click hier

Output of DocToUse.body.parentElement.outerHTML.ToString(): Click hier


Your kind reply will be much appripricate.



Best Regards.

ITS7

AnswerRe: IHTMLDOCUMENT2 AND SOURCECODE Pin
leppie9-Jul-08 1:51
leppie9-Jul-08 1:51 
GeneralRe: IHTMLDOCUMENT2 AND SOURCECODE Pin
ITS79-Jul-08 7:08
ITS79-Jul-08 7:08 
Question.net Exe (Console application) is not working on the remote server Pin
Raheem MA9-Jul-08 1:43
Raheem MA9-Jul-08 1:43 
AnswerRe: .net Exe (Console application) is not working on the remote server Pin
leppie9-Jul-08 1:54
leppie9-Jul-08 1:54 
Questiondisable keypress (Alt+F4, Ctrl+Alt+Del) Pin
Yosh_9-Jul-08 1:40
professionalYosh_9-Jul-08 1:40 
AnswerRe: disable keypress (Alt+F4, Ctrl+Alt+Del) Pin
User 66589-Jul-08 1:56
User 66589-Jul-08 1:56 
GeneralRe: disable keypress (Alt+F4, Ctrl+Alt+Del) Pin
Yosh_9-Jul-08 2:08
professionalYosh_9-Jul-08 2:08 
GeneralRe: disable keypress (Alt+F4, Ctrl+Alt+Del) Pin
User 66589-Jul-08 2:12
User 66589-Jul-08 2:12 
AnswerRe: disable keypress (Alt+F4, Ctrl+Alt+Del) Pin
leppie9-Jul-08 1:57
leppie9-Jul-08 1:57 
AnswerRe: disable keypress (Alt+F4, Ctrl+Alt+Del) Pin
PIEBALDconsult9-Jul-08 15:13
mvePIEBALDconsult9-Jul-08 15:13 
Questionabout the linked subreport parameter in c#2005 Pin
mctramp1689-Jul-08 1:34
mctramp1689-Jul-08 1:34 
AnswerRe: about the linked subreport parameter in c#2005 Pin
mctramp1689-Jul-08 14:29
mctramp1689-Jul-08 14:29 
AnswerRe: about the linked subreport parameter in c#2005 Pin
mctramp16810-Jul-08 14:37
mctramp16810-Jul-08 14:37 
QuestionMaster to content Pin
Agweet9-Jul-08 1:33
Agweet9-Jul-08 1:33 
AnswerRe: Master to content Pin
leppie9-Jul-08 1:55
leppie9-Jul-08 1:55 
GeneralRe: Master to content Pin
Agweet9-Jul-08 2:04
Agweet9-Jul-08 2:04 
QuestionDynamic rows Pin
karthave9-Jul-08 1:25
karthave9-Jul-08 1:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.