The system API class System.Net.HttpWebRequest allows you to retrieve the file information programmatically. The size of each file/page generally available in the header section of web response, which you can query to get it. Header contains Content-Length property value which gives you the size of the file in bytes. This you can later calculate to […]
While using some internet services in your application you may need to check whether data connection is enabled or disabled on user’s phone. So here is a simple code with the help of which you can check it. The code for the following is given below.