First look at the command timeout / connection timeout specified in your SqlCommand / SqlConnection object and increase the timeout if this is a timeout relating to the database call.
Also try increasing the Http request timeout in the web.config!
<httpruntime enable="true" maxrequestlength="10240" executiontimeout="360" />