asp.page with gridview but SQL server shutdown

WONG Tony 161 Reputation points
2021-09-28T01:28:21.807+00:00

the page has a gridview connecting with SQL server
the project has closed. i wish to shut down SQL server and reserve the page and redirect to somewhere.

it works in Form Load with SQL server
If Now() > "2021/9/17 14:00" Then
do something..
End If

however, after shut down SQL server, it comes with error.

i tried form load, init, sqldatasource init. None works. Possible to do it? Thanks.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,409 questions
{count} votes