c# - Deletion of .ascx from programming causing session end -
i have situation:
i upload user controls in webapp , load them when needed. dont want of them. want delete them web application.
here hierarchy controls found.
/controls
/controls/uc/
/controls/uc/ctrl1/ctrl1.ascx (with ctrl.ascx.cs)
/controls/uc/ctrl2/ctrl2.ascx (with ctrl.ascx.cs)
now delete.aspx, have code pick directory structure. , pick control directory "ctrl1(n)" , delete directory delete recursive.
when deletion over, redirect page using asp.net's redirect function. web page redirected, session on , asks me login (as logged in users can delete controls)
why strange behaviour?
remember, none of code found in app_code, controls put under website root shown in above.
edit: of course not precompiled!
any help?
deleting classes in running application (even website project) causing application pool recycle, , end session , else.
whole idea of uploading user controls seems strange.
for more information: asp.net case study: lost session variables , appdomain recycles
Comments
Post a Comment