Calculating the progress percentage
<p>I am using webclient to dowlnoad a file. I am calculating the progress percentage as below</p>

<ol>
<li><p>I know the filesize (I read it from the database table) of the file going to be downloaded.</p></li>
<li><p>I am depending on the <code>BytesRecieved</code> property of WebClient to know the total bytes fetched during download.</p></li>
<li><p>The algorithm I am using is <code>double dProgress = (e.BytesReceived / FileSize)*100);</code> to calculate the progress percentage. </p></li>
</ol>

<p>However i am not getting correct progress percentage to update the progress bar.</p>

<p>Is there any method to calculate progress percentage?</p>
