How can I cancel selecting rows in SqlDataSource
when SelectCommand
timed out?
I know that I can set CommandTimeout
property but I want to Handle error and force Page to continue running when SqlDataSource
timed out.
for more information:
in my page, a ListView
use SqlDataSource
result but this result is not my main content and just recommendation similar list for main content.
I found the solution: after
Selecting
timed out,SqlDataSource
Selected
event start running.