Assigning a web page value to a textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • E11esar
    New Member
    • Nov 2008
    • 132

    Assigning a web page value to a textbox

    Hi there. I'm not sure if this is possible but here goes.

    I have an asp.net (c#) page and I want to populate a textbox (or whatever control is most suitable) with the text value returned by another websites query string. The other web site is not a web service in the sense that I can add a web reference to it.

    The target web site accepts a call as follows (in the url address box in Internet Explorer):

    http://www.website.com?searchValue...

    This returns a value in either text or xml format and the details are displayed in Internet Explorer. What I am wondering is whether or not I can invoke this same request from within my asp.net page and assign the value(s) returned to a control?

    Any help will be much appreciated.

    Thank you.

    M :)
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    You can use the WebRequest Class to request data from an application to a particular URI, such as a Web page. Check out how to send data using the WebRequest Class

    Comment

    Working...