>Thanks Paul,
>
> Which section in web.config should I change the value. In Sessionstate I changed from 20 to 200 and also I copied and pasted the code you wrote in the html but it still does not work. Do I have to put my server name in place of Server word.
No, Server is correct.
Here's where you'd change it in the web.config
<system.web>
<httpModules>
</httpModules>
<compilation>
<assemblies>
</assemblies>
</compilation>
<httpRuntime maxRequestLength="1048576" executionTimeout="180" />
If that doesn't fix it, it could be the timeout on the SQL connection object (CommandTimeout).