Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. OpenURL() call fails

OpenURL() call fails

Scheduled Pinned Locked Moved C / C++ / MFC
comsysadminhelptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lucky the code machine
    wrote on last edited by
    #1

    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

    CPalliniC L 2 Replies Last reply
    0
    • L Lucky the code machine

      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

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      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]

      In testa che avete, signor di Ceprano?

      1 Reply Last reply
      0
      • L Lucky the code machine

        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

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        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.


        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups