Hello,
i am using the Microsoft.mshtm l.dll to access the DOM in the HTML page
when i use the Collection object it gives me the ExecutionEngine Exception
execption
The code is given below
Dim htmlCollection As IHTMLElementCol lection
Dim coll As mshtml.HTMLDTEl ement
htmlCollection = m_MainHtmlDoc.g etElementsByTag Name("*")
For Each coll In htmlCollection
Try
Select Case LCase(coll.tagN ame)
Case "input", "img", "textarea", "span"
coll.setAttribu te("disabled", "true")
Case "a"
CType(coll, HTMLAnchorEleme nt).setAttribut e("href", "")
End Select
Catch se As ExecutionEngine Exception
HttpContext.Cur rent.Response.W rite(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.mshtm l.dll to access the DOM in the HTML page
when i use the Collection object it gives me the ExecutionEngine Exception
execption
The code is given below
Dim htmlCollection As IHTMLElementCol lection
Dim coll As mshtml.HTMLDTEl ement
htmlCollection = m_MainHtmlDoc.g etElementsByTag Name("*")
For Each coll In htmlCollection
Try
Select Case LCase(coll.tagN ame)
Case "input", "img", "textarea", "span"
coll.setAttribu te("disabled", "true")
Case "a"
CType(coll, HTMLAnchorEleme nt).setAttribut e("href", "")
End Select
Catch se As ExecutionEngine Exception
HttpContext.Cur rent.Response.W rite(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
Comment