response.redirect("") inside "using{ }"
assume following code:
using (sqlconnection conn = new sqlconnection(connectionstring))
{
...
controlling (sqlcommand comm = new sqlcommand(...))
{
.. things ..
if(condition) response.redirect("somepage.aspx");
}
}
will response.redirect() exit controlling blocks means dispose connections?
or, alternatively, there any proceed exit controlling retard won't means disposal?
edit: i don't wish exit but disposal. i wish wakeful any pitfalls means work. -- proud crashes course, nonetheless following i'm graceful certain objects likely --the tough way-- situation
i've supposed an answer, radically says "i don't know" nonetheless it's unequivocally good researched "i don't know"
for meant time, i'm going assume response.redirect aborts controlling matter formula mind. -- until proven otherwise.
Comments
Post a Comment