rdgerken
Technical User
- Jul 8, 2002
- 108
Guys/Gals,
I have a GridView bound to a SqlDataSource control in my page. From remote locations, I have no problems running my stored procedure that the SqlDataSource is pointing to. However, sometimes when I first open the page, I get a "Timeout expired" error. (Strangly, this problem happens more at the local terminal than it does from a remote terminal). After researching this, most folks say I need to set a larger timeout value for the Command.
First question is, is this what I need to do?
Secondly, how can I do this if I'm not setting up the GridView<->SqlDataSource in code (I'm just setting the GridView up using the smart tags to use the DataSource) - so it doesn't seem that I have access to this Command object anywhere to even get to the timeout property - timeout or command doesn't seem to be a part of the SqlDataSource control, or if it is, I don't know how to get to it.
TIA for your help!
I have a GridView bound to a SqlDataSource control in my page. From remote locations, I have no problems running my stored procedure that the SqlDataSource is pointing to. However, sometimes when I first open the page, I get a "Timeout expired" error. (Strangly, this problem happens more at the local terminal than it does from a remote terminal). After researching this, most folks say I need to set a larger timeout value for the Command.
First question is, is this what I need to do?
Secondly, how can I do this if I'm not setting up the GridView<->SqlDataSource in code (I'm just setting the GridView up using the smart tags to use the DataSource) - so it doesn't seem that I have access to this Command object anywhere to even get to the timeout property - timeout or command doesn't seem to be a part of the SqlDataSource control, or if it is, I don't know how to get to it.
TIA for your help!