Is there a way to specify the culture when using System.Net.WebClient to read the contents of a page

Posted by bubbassauro on Stack Overflow See other posts from Stack Overflow or by bubbassauro
Published on 2010-04-27T15:55:29Z Indexed on 2010/04/27 16:03 UTC
Read the original article Hit count: 272

Filed under:
|

Is there a way to render a page with a specific culture using System.Net.WebClient?

For example:

System.Net.WebClient client = new System.Net.WebClient();

CultureInfo myCulture = System.Globalization.CultureInfo.GetCultureInfo("es-ES");
// Do something to specify the culture info

client.DownloadString(someUrl);

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET