Access a Internet URL from my web application

Discussion in 'ASP .Net' started by Techeek, Jan 6, 2008.

  1. Techeek

    Techeek Guest

    How to access a Internet URL from a web application ? This web request will
    give
    XML output. How can I read that output??

    Can anyone help me??
    --
    techeek
    http://oxyin.com/techeek/
     
    Techeek, Jan 6, 2008
    #1
    1. Advertising

  2. "Techeek" <> wrote in message
    news:...

    > How to access a Internet URL from a web application ? This web request
    > will
    > give XML output. How can I read that output??


    string strXML = String.Empty;
    using (WebClient objWebClient = new WebClient())
    {
    using (StreamReader objStreamReader = new
    StreamReader(objWebClient.OpenRead("https://www.website.com/xmlpage.aspx")))
    {
    strXML = objStreamReader.ReadToEnd();
    objStreamReader.Close();
    }
    }


    --
    Mark Rae
    ASP.NET MVP
    http://www.markrae.net
     
    Mark Rae [MVP], Jan 6, 2008
    #2
    1. Advertising

  3. Peter Bromberg [C# MVP], Jan 7, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon paugh
    Replies:
    1
    Views:
    957
  2. cmay
    Replies:
    0
    Views:
    1,182
  3. abcd
    Replies:
    7
    Views:
    362
    Alexey Smirnov
    Aug 19, 2009
  4. Just D.
    Replies:
    0
    Views:
    559
    Just D.
    Aug 11, 2004
  5. John Smith
    Replies:
    1
    Views:
    174
    Evertjan.
    Mar 12, 2005
Loading...

Share This Page