How to set Command Timeout for SQLDataSource control?

J

John Kotuby

Hi all,
I have set up a page with a Repeater and a SQLDatasource control, the data
control suggested by online Help for use with the Repeater. I am getting
Timeout Expired after 30 seconds. I expect many of my queries to take longer
than 30 seconds because they are ad hoc user-defined searches through
multiple joined tables and associated Text fields. I have to learn more
about creating full text indexes for searching...but.

How can I set the Command timeout for a SQLDataSource control. I cannot find
the answer in the online help or any searches so far?

For now I am trying to replace the SQLDataSource with a SqlDataAdapter and
DataTable.

But it would be nice to know if I can control the Command timeout on the
SQLDataSource control also...

Thanks very much for your help.
 
M

Muhammad Naveed Yaseen

In SqlDataSource command events, the event argument (i.e
SqlDataSourceCommandEventArgs or SqlDataSourceSelectingEventArgs) give
access to command object, from which you may modify CommandTimeout
 
J

John Kotuby

Thanks Muhammed,

I appreciate the reply and the info. Sorry I didn't get back to thank you
sooner... got caught up in development and forgot to respond. Very helpful
information indeed....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top