A
AAaron123
A while ago I wanted to generate a way to copy the text in an .htm file to
the InnerHtml of a div element that was in a asp:Content element. I didn't
want any of the styles in the file's header to be used. Rather I wanted to
use the styles defined by the master.
One reason for all this is that the current master style sheet is selectable
by the user.
So I wrote a function that uses the StreamReader to copy the text between
the <body></body> elements of the .htm file into a string that I then
assigned to the InnerHtml.
Seems kind of kludgy to me even though it works well.
Can you suggest a more straight forward way?
Thanks
BTW, I use .htm for my file names. Is .html more commonly used by ASP.NET
developers?
the InnerHtml of a div element that was in a asp:Content element. I didn't
want any of the styles in the file's header to be used. Rather I wanted to
use the styles defined by the master.
One reason for all this is that the current master style sheet is selectable
by the user.
So I wrote a function that uses the StreamReader to copy the text between
the <body></body> elements of the .htm file into a string that I then
assigned to the InnerHtml.
Seems kind of kludgy to me even though it works well.
Can you suggest a more straight forward way?
Thanks
BTW, I use .htm for my file names. Is .html more commonly used by ASP.NET
developers?