0

i have developed a web application with asp.net and c#.net and i use sql server DB,

i am getting sql time out exception occasionally, i want to redirect to the loginpage in the case of sqltimeout exception? how can that be done

subash
  • 4,050
  • 14
  • 51
  • 78

1 Answers1

0

Wrap the database call in a try/catch. If it times out, use the Response.Redirect() command.

richard
  • 12,263
  • 23
  • 95
  • 151