Re: How to call HTML (with POST) page from Web form
- From: "Brett Romero" <account@xxxxxxxxx>
- Date: 20 Jul 2005 14:32:10 -0700
I'm not sure what you mean by the first statement. If the FORM has
been POSTed then you are only wanting to get the POST results from the
result page?
On the second question, this is a psuedo example of how to get it
going. I'm actually using a component from Clever Components for most
parsing. I find it to make those task easier and they have excellent
support.
//get things going by declaring the IE instance and referencing MSHTML
for document parsing
private SHDocVw.InternetExplorer IE_Inst = new
SHDocVw.InternetExplorerClass();
private mshtml.HTMLDocument ieDoc;
//use the following for getting at HTML in the document. Make use of
OuterHTML values you see in the debugger. This allows you to parse the
HTML.
mshtml.HTMLBody ieBody;
ieDoc = (mshtml.HTMLDocument)IE_Inst.Document;
//get information about the document body if you need to
ieBody = (mshtml.HTMLBody)ieDoc.body;
DocHeight = (double)ieBody.scrollHeight
//Just an example of doing a POST in the IE instance you've created
NavigateToWebPage(FormPostURL, formFieldString, vHeaders);
You can see I've wrapped the IE Navigate method just to check for null
strings and other validations. I'm also passing in my own Header
string. The actual Navigate uses two here. You'll need to do more
work to get it going but it should give you an idea of how things work.
Brett
.
- Follow-Ups:
- Re: How to call HTML (with POST) page from Web form
- From: McBeth
- Re: How to call HTML (with POST) page from Web form
- References:
- How to call HTML (with POST) page from Web form
- From: McBeth
- Re: How to call HTML (with POST) page from Web form
- From: Brett Romero
- Re: How to call HTML (with POST) page from Web form
- From: McBeth
- Re: How to call HTML (with POST) page from Web form
- From: Brett Romero
- Re: How to call HTML (with POST) page from Web form
- From: McBeth
- How to call HTML (with POST) page from Web form
- Prev by Date: Re: How do I find if some Text exists in a String?
- Next by Date: InternetExplorerClass and seperate processes?
- Previous by thread: Re: How to call HTML (with POST) page from Web form
- Next by thread: Re: How to call HTML (with POST) page from Web form
- Index(es):
Relevant Pages
|
Loading