Last post Sep 30, 2011 08:52 PM by Decker Dong - MSFT
Sep 29, 2011 12:42 PM|mjbressler|LINK
How do you prevent a aspx webform / sqldatasourch control to not time out after 30 seconds? The SQLDataSource Control placed on a aspx page has a default time-out of 30.
I thought it was: (CacheDuration)
<asp:SqlDataSource id="Test" CacheDuration="Infinite" runat="server" ConnectionString="<%$ ConnectionStrings:TestConnectionString %>" SelectCommand="SP_Test" SelectCommandType="StoredProcedure">
<asp:Parameter DefaultValue="UNV" Name="DropDownList1" Type="String" />
Sep 30, 2011 08:52 PM|decker dong - msft|LINK
No you are wrong. "CatchDuration" means how long you want to save the data contents into memory and directly take the data contents from the memory instead of doing searching from db and fetch data and show them onto the GridView. So it's nothing to do with
See MSDN at:
You can set the select command's timeout value in SqlDataSource's Selecting
protected void SqlDataSource1_Selecting(object sender,
e.Command.CommandTimeout = 30; //or more time....