Ask a Question related to ASP Database, Design and Development.
-
nick #1
response.redirect and recordset/connection object?
I have the following code. Should I close and release the database objects
before run response.redirect("some url")? or will the response.redirect
automatically close the database object/connection like the end of asp
script? I am using IIS 3.
.......
var cmd = Server.CreateObject("ADODB.Command")
var rs = Server.CreateObject("ADODB.Recordset")
cmd.ActiveConnection = conn
cmd.CommandText = strCmd
cmd.CommandType = adCmdStoredProc
rs.Open(cmd)
.......
response.redirect("some url")
nick Guest
-
asp response.redirect
> FORM ACTION="Goto_yahoo" must be Goto_yahoo.asp -
Response.Flush / Response.Redirect
Hi, I've had a good google and can't find anything already on this so : I'm currently trying to have a 'Page Loading' page on a site. The way... -
Response.Write and Response.Redirect
On my Page_Load event, i need to do some validation and then either let them proceed, or display a error message and boot them back to the previous... -
Response.Redirect fails on cell connection
Igor wrote on 08 jul 2003 in microsoft.public.inetserver.asp.general: If the dns of the isp does not work, set another ISP's static dns-ip. --... -
Redirect to New Browser Window like Response.Redirect
That worked just fine for me as long as you put that open statement on one line rather than 2. "michel" <michely3k@yahoo.com> wrote in... -
CJM #2
Re: response.redirect and recordset/connection object?
I set all my objects to Nothing before I redirect.
I'm not certain about this, but I dont see how redirecting is any different
to any other situation, and therefore we must clean up our mess. Besides,
it's not that much of a bind anyway...
Chris
CJM Guest
-
Bullschmidt #3
Re: response.redirect and recordset/connection object?
I generally close recordset objects as soon as I'm done using them. And
I generally close the connection at the end of the page and just before
any redirects even though this MAY POSSIBLY be done automatically.
Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
[url]http://www.Bullschmidt.com[/url]
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Devdex [url]http://www.devdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Bullschmidt Guest
-
IPT #4
Re: response.redirect and recordset/connection object?
This is just a guess from me.
If webserver has HTTP-Connection Kept Alive set ON, connection may not be
closed when redirect.
> I have the following code. Should I close and release the database objects
> before run response.redirect("some url")? or will the response.redirect
> automatically close the database object/connection like the end of asp
> script? I am using IIS 3.
>
> ......
> var cmd = Server.CreateObject("ADODB.Command")
> var rs = Server.CreateObject("ADODB.Recordset")
> cmd.ActiveConnection = conn
> cmd.CommandText = strCmd
> cmd.CommandType = adCmdStoredProc
> rs.Open(cmd)
>
> ......
>
> response.redirect("some url")
IPT Guest



Reply With Quote

