OpenURL() call fails
-
Hi, I am trying to automate reading information from a website. I can read the first page, but the site navigation to the second page is not a link, it is a __DoPostBack() call and I don't understand what needs to be sent to the server to get the second page. The initial page I (sucessfully) read is http://www.arm.co.uk/Default.aspx?page=280&SearchString= &theme=textonly\[^\], but then I cant work out how to emulate the action of clicking on the '2' button to get to the second page. I guess the problem is to do with __viewstate ect. I have tried sending back the viewstate http://www.arm.co.uk/default.aspx?page=280&theme=textonly&\_\_EVENTTARGET=Template%3A\_ctl12%3A\_ctl2%3AJobResultsDataGrid%3A\_ctl1%3A\_ctl2&\_\_EVENTARGUMENT=&\_\_VIEWSTATE=\[^\] + the recieved __VIEWSTATE value, but this did not work and the OpenURL() call fails. Any ideas?
An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky www.mpic3.com - My PIC based MP3 player project
-
Hi, I am trying to automate reading information from a website. I can read the first page, but the site navigation to the second page is not a link, it is a __DoPostBack() call and I don't understand what needs to be sent to the server to get the second page. The initial page I (sucessfully) read is http://www.arm.co.uk/Default.aspx?page=280&SearchString= &theme=textonly\[^\], but then I cant work out how to emulate the action of clicking on the '2' button to get to the second page. I guess the problem is to do with __viewstate ect. I have tried sending back the viewstate http://www.arm.co.uk/default.aspx?page=280&theme=textonly&\_\_EVENTTARGET=Template%3A\_ctl12%3A\_ctl2%3AJobResultsDataGrid%3A\_ctl1%3A\_ctl2&\_\_EVENTARGUMENT=&\_\_VIEWSTATE=\[^\] + the recieved __VIEWSTATE value, but this did not work and the OpenURL() call fails. Any ideas?
An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky www.mpic3.com - My PIC based MP3 player project
Lucky the code machine wrote:
An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky
What about a bomb disposal expert? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
[my articles] -
Hi, I am trying to automate reading information from a website. I can read the first page, but the site navigation to the second page is not a link, it is a __DoPostBack() call and I don't understand what needs to be sent to the server to get the second page. The initial page I (sucessfully) read is http://www.arm.co.uk/Default.aspx?page=280&SearchString= &theme=textonly\[^\], but then I cant work out how to emulate the action of clicking on the '2' button to get to the second page. I guess the problem is to do with __viewstate ect. I have tried sending back the viewstate http://www.arm.co.uk/default.aspx?page=280&theme=textonly&\_\_EVENTTARGET=Template%3A\_ctl12%3A\_ctl2%3AJobResultsDataGrid%3A\_ctl1%3A\_ctl2&\_\_EVENTARGUMENT=&\_\_VIEWSTATE=\[^\] + the recieved __VIEWSTATE value, but this did not work and the OpenURL() call fails. Any ideas?
An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky www.mpic3.com - My PIC based MP3 player project
Lucky the code machine wrote:
An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky
Life is too short to make all possible mistakes. Maybe an expert is just someone who makes mistakes that are more difficult to spot and fix? :-D
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.