Help

  • Thread starter Thread starter Nicholas Paldino [.NET/C# MVP]
  • Start date Start date
N

Nicholas Paldino [.NET/C# MVP]

Shawn,

Yes, you can. Take a look at the WebClient class, or the HttpWebRequest
and HttpWebResponse classes if the requests you have to make are more
complex. They will allow you to get the contents of another site from
within ASP.NET.

Be careful though, by default, ASP.NET runs under the local ASPNET user
account, which doesn't have access to the network, so you will have to
change it so that routine runs in an account that has the appropriate
permissions.

Hope this helps.
 
Is there any way to get HTML code from one web site to another one in
ASP.NET?
e.g. in my web form, I want to get information from other site but that site
only provides HTML page. Can I get this HTML page in ASP.NET routine?

Shawn
 
Back
Top