|
Тема |
Що не препоръчваш ? [re: dzver] |
|
Автор |
jamie (влюбен) |
|
Публикувано | 22.04.02 09:49 |
|
|
on error resume next
MyConn.Open connectString
on error goto 0
' If error found is adStateClosed, cease connection and redirect to error.asp
if MyConn.State=adStateClosed then
Set MyConn= Nothing
Session("EntryErr")="Cannot connect to database !"
Response.Redirect ("../error.asp")
end if
Ами тук ON ERROR е просто наложително :-)))
Всяко нещо е хубаво или лошо само според ПРИЛОЖЕНИЕТО си !
Anywhere you go, always take a weather with you...
|
| |
|
|
|