P
Pooja Renukdas
Hello,
i am using the Microsoft.mshtml.dll to access the DOM in the HTML page
when i use the Collection object it gives me the ExecutionEngineException
execption
The code is given below
Dim htmlCollection As IHTMLElementCollection
Dim coll As mshtml.HTMLDTElement
htmlCollection = m_MainHtmlDoc.getElementsByTagName("*")
For Each coll In htmlCollection
Try
Select Case LCase(coll.tagName)
Case "input", "img", "textarea", "span"
coll.setAttribute("disabled", "true")
Case "a"
CType(coll, HTMLAnchorElement).setAttribute("href", "")
End Select
Catch se As ExecutionEngineException
HttpContext.Current.Response.Write(se.Message.ToString())
End Try
Next
When i debug then it gives me an EngineExecution exception when it enters
the Select case statement
i do not why this happens?
is there a solution to solve this?
Pooja Renukdas
i am using the Microsoft.mshtml.dll to access the DOM in the HTML page
when i use the Collection object it gives me the ExecutionEngineException
execption
The code is given below
Dim htmlCollection As IHTMLElementCollection
Dim coll As mshtml.HTMLDTElement
htmlCollection = m_MainHtmlDoc.getElementsByTagName("*")
For Each coll In htmlCollection
Try
Select Case LCase(coll.tagName)
Case "input", "img", "textarea", "span"
coll.setAttribute("disabled", "true")
Case "a"
CType(coll, HTMLAnchorElement).setAttribute("href", "")
End Select
Catch se As ExecutionEngineException
HttpContext.Current.Response.Write(se.Message.ToString())
End Try
Next
When i debug then it gives me an EngineExecution exception when it enters
the Select case statement
i do not why this happens?
is there a solution to solve this?
Pooja Renukdas