Advertisement

07.10.2008 at 02:59AM PDT, ID: 23553126
[x]
Attachment Details

fill up web form using mshtml

Asked by CSLEEDS in Microsoft Visual C#.Net, C# Programming Language

Tags: C#, IE7

hi all, i'm trying to read a document from the internet explorer and fill up the fields inside the form. the reading part of the document has been done, and now i was able to pass the mshtml.ihtmldocument2 to go for data feeding. and the code is as shown in code snippet:

now the problem is the coding in the for each loop to read all the input element is not working, as i tried this is working perfectly in vb code.

any ideas? should i cast the document to other type? or what are the alternative type that can allow me to access all the input element in the web form?


Start Free Trial
1:
2:
3:
4:
foreach (mshtml.IHTMLInputElement inpElement in ihtmlDoc.all.tags("input"))
{ 
    listBox1.Items.Add(inpElement.name); 
}
[+][-]07.10.2008 at 04:45PM PDT, ID: 21978397

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C#.Net, C# Programming Language
Tags: C#, IE7
Sign Up Now!
Solution Provided By: TheLearnedOne
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.10.2008 at 08:33PM PDT, ID: 21979780

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 12:23AM PDT, ID: 21980508

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628