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. Web Development
  3. ASP.NET
  4. Extract data from another site.

Extract data from another site.

Scheduled Pinned Locked Moved ASP.NET
help
13 Posts 2 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.
  • A anubhaw gupta

    Thanks for that. Really Appreciate that but am getting a problem. Error says: "Could not find file 'C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\www.google.com'." Am not getting that what's the problem.

    A Offline
    A Offline
    AmitGajjar
    wrote on last edited by
    #4

    are you using same code given in the link ?

    Thanks -Amit Gajjar (MinterProject)

    A 1 Reply Last reply
    0
    • A AmitGajjar

      are you using same code given in the link ?

      Thanks -Amit Gajjar (MinterProject)

      A Offline
      A Offline
      anubhaw gupta
      wrote on last edited by
      #5

      Hey thanks. Actually i got it. What i was missing was that i wasnt prefixing "http://" before. but it's ok now. but there's a diff issue now. I have a page say "http://ev~.in/.../..../~.jsp" It's showing error that "

      A potentially dangerous Request.Form value was detected from the client (txtdest="<!doctype html><html...").

      Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. To allow pages to override application request validation settings, set the requestValidationMode attribute in the httpRuntime configuration section to requestValidationMode="2.0". Example: <httpRuntime requestValidationMode="2.0" />. After setting this value, you can then disable request validation by setting validateRequest="false" in the Page directive or in the <pages> configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. For more information, see http://go.microsoft.com/fwlink/?LinkId=153133.

      " I guess we cant bypass that. right? What my main aim is that i have table under tht page (i have to login too) which shows attendance. I just want to extract the attendance thing. Is it possible?

      A 1 Reply Last reply
      0
      • A anubhaw gupta

        Hey thanks. Actually i got it. What i was missing was that i wasnt prefixing "http://" before. but it's ok now. but there's a diff issue now. I have a page say "http://ev~.in/.../..../~.jsp" It's showing error that "

        A potentially dangerous Request.Form value was detected from the client (txtdest="<!doctype html><html...").

        Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. To allow pages to override application request validation settings, set the requestValidationMode attribute in the httpRuntime configuration section to requestValidationMode="2.0". Example: <httpRuntime requestValidationMode="2.0" />. After setting this value, you can then disable request validation by setting validateRequest="false" in the Page directive or in the <pages> configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. For more information, see http://go.microsoft.com/fwlink/?LinkId=153133.

        " I guess we cant bypass that. right? What my main aim is that i have table under tht page (i have to login too) which shows attendance. I just want to extract the attendance thing. Is it possible?

        A Offline
        A Offline
        AmitGajjar
        wrote on last edited by
        #6

        check http://forums.asp.net/t/1634650.aspx[^] discussion.

        Thanks -Amit Gajjar (MinterProject)

        A 1 Reply Last reply
        0
        • A AmitGajjar

          check http://forums.asp.net/t/1634650.aspx[^] discussion.

          Thanks -Amit Gajjar (MinterProject)

          A Offline
          A Offline
          anubhaw gupta
          wrote on last edited by
          #7

          Really sorry for bugging you. But the "unvalidated" is showing error. it says it doesnt contain a definition for unvalidated.

          A 1 Reply Last reply
          0
          • A anubhaw gupta

            Really sorry for bugging you. But the "unvalidated" is showing error. it says it doesnt contain a definition for unvalidated.

            A Offline
            A Offline
            AmitGajjar
            wrote on last edited by
            #8

            <configuration>
            <system.web>
            <httpRuntime requestValidationMode="2.0" />
            <pages validateRequest="false" />
            </system.web>
            </configuration>

            Use above section in config file.

            Thanks -Amit Gajjar (MinterProject)

            A 1 Reply Last reply
            0
            • A AmitGajjar

              <configuration>
              <system.web>
              <httpRuntime requestValidationMode="2.0" />
              <pages validateRequest="false" />
              </system.web>
              </configuration>

              Use above section in config file.

              Thanks -Amit Gajjar (MinterProject)

              A Offline
              A Offline
              anubhaw gupta
              wrote on last edited by
              #9

              Thanks. It still showing tht problem. tried tweaking things up but aint working. Will try more. :)

              A 1 Reply Last reply
              0
              • A anubhaw gupta

                Thanks. It still showing tht problem. tried tweaking things up but aint working. Will try more. :)

                A Offline
                A Offline
                AmitGajjar
                wrote on last edited by
                #10

                there are lots of discussion on similar error. you can try one of the solution and let me know, in case you have any issue. best luck

                Thanks -Amit Gajjar (MinterProject)

                A 1 Reply Last reply
                0
                • A AmitGajjar

                  there are lots of discussion on similar error. you can try one of the solution and let me know, in case you have any issue. best luck

                  Thanks -Amit Gajjar (MinterProject)

                  A Offline
                  A Offline
                  anubhaw gupta
                  wrote on last edited by
                  #11

                  I got that. One more question. Suppose i want to get the html of facebook.com. it'll give me that. but once i login,it will still give the old i.e the default html code. how to get the new changed code?

                  A 1 Reply Last reply
                  0
                  • A anubhaw gupta

                    I got that. One more question. Suppose i want to get the html of facebook.com. it'll give me that. but once i login,it will still give the old i.e the default html code. how to get the new changed code?

                    A Offline
                    A Offline
                    AmitGajjar
                    wrote on last edited by
                    #12

                    never tried with facebook or such a big sites but for security reason they may have restricted such request. but try with storing session information and crawl all the links on the page.

                    Thanks -Amit Gajjar (MinterProject)

                    A 1 Reply Last reply
                    0
                    • A AmitGajjar

                      never tried with facebook or such a big sites but for security reason they may have restricted such request. but try with storing session information and crawl all the links on the page.

                      Thanks -Amit Gajjar (MinterProject)

                      A Offline
                      A Offline
                      anubhaw gupta
                      wrote on last edited by
                      #13

                      Thanks a lot. :)

                      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