Hi friends,
i'm doing a web application using ASP and
VB. Here i have a question need you all helps.
If i have a HTML code string and how can i use it properly? Belows shown my code:
Code:
Dim objHTMLDoc As HTMLDocument
Dim strContentAs String
Set objHTMLDoc = New HTMLDocument
strContent = "<Table><center><img src=""SaveFile.asp? " & _ strAttachID=5531&strType=Msg"" Width=""600""/><TR><TD>"
objHTMLDoc2.body.innerHTML = strContent
Debug.Print strContent
Debug.Print objHTMLDoc2.body.innerHTML
Belows is the output:
Code:
<Table><center><img src="SaveFile.asp?strAttachID=5531&strType=Msg" Width="600"/><TR><TD>
<TABLE>
<CENTER><IMG src="about:blankSaveFile.asp?strAttachID=5531&strType=Msg" width=600>
<TBODY>
<TR>
<TD></TR></TBODY></CENTER></TABLE>
Here are 1 question and 1 problem:
Question: is this the HTMLDocument object behaviour that add <TBODY> tag after each <TABLE> tag?
Problem: To be awared that the content of <IMG> tag has been changed:
<img src="SaveFile.asp?strAttachID=5531&strType=Msg" Width="600"/> had changed to:
<IMG src="about
:blankSaveFile.asp?strAttachID=5531& strType=Msg" width=600>
The attribute of <IMG>, Src, was changed so that the image cannot be displayed in HTML browser. How can i solve the problem?