ASP.NET code in two files

  • Thread starter Thread starter Jan Kraljic
  • Start date Start date
J

Jan Kraljic

Hi all,

I'm working on project with ASP.NET with code behind(C#). On page load I
always check security. I found out, that any little change it that part,
make a lot of work, because there is many files to change that little
correction. I try to make thih in another file, but without success,
because a was not able to make some instructions like "Cache" or
"Resoponse.Redirect". Can ANYone show me example how a have to do this, or
help me some other way, like URL with help or example!

Thanks in advace for any help,

Jan Kraljiè (Mr.)
 
It sounds as if you are building a utility class for some common code
that does security checks but need access to request specific
information.

You can use HttpContext.Current get to all the important properties
associated with a request, for example, the Cache object, the
Applicaiton object, the Request and Response objects etc.

HTH.
 
thx, that it!!

It sounds as if you are building a utility class for some common code
that does security checks but need access to request specific
information.

You can use HttpContext.Current get to all the important properties
associated with a request, for example, the Cache object, the
Applicaiton object, the Request and Response objects etc.

HTH.
 
Back
Top