hawkclj
05-30-2006, 10:00 AM
recently,i research the Spring.NET AOP !fortunately,there are some simple samples!when i try to apply Spring.NET AOP to ASP.NET Web Application,i find difficulty.if you want use Advice to check user's Session which generates at login page:
First you must make the page implements a interface, in the interface there are a method Page_Load(object sender, System.EventArgs e).
Then you must implement IMethodBeforeAdvice,but i can't directly check Session,because Session can't exist in class library file(.cs file)
last you must use a .cs file to compose them.
but .cs file can not be the first start page in ASP.NET Web Application
can some people give me some advice to apply Spring.NET AOP to ASP.NET Web Application
thanks
First you must make the page implements a interface, in the interface there are a method Page_Load(object sender, System.EventArgs e).
Then you must implement IMethodBeforeAdvice,but i can't directly check Session,because Session can't exist in class library file(.cs file)
last you must use a .cs file to compose them.
but .cs file can not be the first start page in ASP.NET Web Application
can some people give me some advice to apply Spring.NET AOP to ASP.NET Web Application
thanks