I am populating a set of results in asp.net grid-view from a stored procedure. That stored procedure is very huge and taking some time to return the results. While executing that stored procedure its taking two minutes , but I am able to see the results in the SQL Server Editor. But in grid-view it is not loading and I am getting time out error.
Can any one please suggest me the solution?
Error Details:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Exception Details: System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.