retrieve value from a hidden field on asp.net page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LoanB
    New Member
    • Nov 2007
    • 62

    retrieve value from a hidden field on asp.net page

    Hi, I have a access form, which has some text fields on it and a few buttons and a web browser control.

    How it works:
    1. user enters some information in the text field.
    2. user clicks button to go the the web page.
    3. web page opens a Silverlight application.
    4. user does what they need to and saves (in this case) a graphic on a map.
    5. The Silverligth application takes the ID of the graphic and places it on the ASP.Net page using Javascript.


    What I need:

    I need to find a way for the Access form to get hold of that ID - now kept in the ASP.Net hidden field.

    Can anyone help me with this please?
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I don't know the capabilities of Access with regards to dealing with traversing through DOM...but that is what you'd have to do. You would have to somehow get a hold of the source file for the ASP.NET page and search through all of the elements in that source code to find the HiddenField element. Then you would have to retrieve the value attribute from the hidden field element.

    I'm sorry but I don't know how to use Access to accomplish this.

    Comment

    • MMcCarthy
      Recognized Expert MVP
      • Aug 2006
      • 14387

      #3
      Unless there are some tools available that I'm not currently aware of I would think the only way of doing this would be to search the source file as a text file. Depending on the file size this could take some time.

      Comment

      • MMcCarthy
        Recognized Expert MVP
        • Aug 2006
        • 14387

        #4
        Originally posted by Frinavale
        I don't know the capabilities of Access with regards to dealing with traversing through DOM...but that is what you'd have to do. You would have to somehow get a hold of the source file for the ASP.NET page and search through all of the elements in that source code to find the HiddenField element. Then you would have to retrieve the value attribute from the hidden field element.

        I'm sorry but I don't know how to use Access to accomplish this.

        Thanks for giving this your attention :)

        Comment

        • LoanB
          New Member
          • Nov 2007
          • 62

          #5
          Many thanks team. I will give it some more attention this weekend and next week and If I find a solution I will share.

          Comment

          • Jim Doherty
            Recognized Expert Contributor
            • Aug 2007
            • 897

            #6
            Originally posted by LoanB
            Hi, I have a access form, which has some text fields on it and a few buttons and a web browser control.

            How it works:
            1. user enters some information in the text field.
            2. user clicks button to go the the web page.
            3. web page opens a Silverlight application.
            4. user does what they need to and saves (in this case) a graphic on a map.
            5. The Silverligth application takes the ID of the graphic and places it on the ASP.Net page using Javascript.


            What I need:

            I need to find a way for the Access form to get hold of that ID - now kept in the ASP.Net hidden field.

            Can anyone help me with this please?
            I answered something similar to this a while ago

            Comment

            • LoanB
              New Member
              • Nov 2007
              • 62

              #7
              Awesome stuff Jim, thanks. Ill let you know how it goes.

              Comment

              Working...