Click here to Skip to main content
15,890,409 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionASPNETDB.MDF Pin
Abdulhafeezo4-Jan-10 4:09
Abdulhafeezo4-Jan-10 4:09 
AnswerRe: ASPNETDB.MDF Pin
Vimalsoft(Pty) Ltd4-Jan-10 6:25
professionalVimalsoft(Pty) Ltd4-Jan-10 6:25 
AnswerRe: ASPNETDB.MDF Pin
Abhishek Sur4-Jan-10 6:48
professionalAbhishek Sur4-Jan-10 6:48 
GeneralRe: ASPNETDB.MDF Pin
Abdulhafeezo4-Jan-10 7:37
Abdulhafeezo4-Jan-10 7:37 
GeneralRe: ASPNETDB.MDF Pin
Abhishek Sur4-Jan-10 20:52
professionalAbhishek Sur4-Jan-10 20:52 
AnswerRe: ASPNETDB.MDF Pin
suyogm6-Jan-10 1:07
suyogm6-Jan-10 1:07 
QuestionAspect Oriented Programming for Beginners Pin
Brendan Vogt4-Jan-10 2:28
Brendan Vogt4-Jan-10 2:28 
AnswerRe: Aspect Oriented Programming for Beginners Pin
Roger Alsing4-Jan-10 4:11
Roger Alsing4-Jan-10 4:11 
>> What's the use of doing it this way?

By using AOP you can model cross cutting concerns and apply these to the rest of your model.

Think about how how inheritence works for OOP.
Inheritance in OOP makes it possible to reuse code from a baseclass to a subclass.

In a similair way you can reuse code via AOP.
Lets say you need logging in all your business methods.
Then you can apply the same logic onto all of them via AOP.

So you can think of it as inheritence at method level, you let a method inherit logic.
These magic fragments of code are called an "interceptor" or an "advice"

The most naive and obvious usages of AOP is logging and security.
But there are lots of other usecases.

Personally I used AOP (using my own framework NAspect) to apply things like data binding support and dirty tracking onto ordinairy classes.


One common argument against AOP is that it makes it hard to see what happens.
e.g. you can not see that the logging code will execute when you look at the code.
This is true, and could be a problem.

This is ofcourse a very simplified view on AOP, but I hope it gives some idea on what it can do.


QuestionI Have Problem in ASP.NET Deployment Pin
Mohamed_Khalil4-Jan-10 0:42
Mohamed_Khalil4-Jan-10 0:42 
AnswerRe: I Have Problem in ASP.NET Deployment Pin
Abhijit Jana4-Jan-10 0:57
professionalAbhijit Jana4-Jan-10 0:57 
AnswerRe: I Have Problem in ASP.NET Deployment Pin
Vimalsoft(Pty) Ltd4-Jan-10 6:35
professionalVimalsoft(Pty) Ltd4-Jan-10 6:35 
AnswerRe: I Have Problem in ASP.NET Deployment Pin
Jeneesh K. Velayudhan6-Jan-10 1:29
Jeneesh K. Velayudhan6-Jan-10 1:29 
Questionuserrole Pin
mylogics4-Jan-10 0:23
professionalmylogics4-Jan-10 0:23 
AnswerRe: userrole Pin
Not Active4-Jan-10 1:06
mentorNot Active4-Jan-10 1:06 
GeneralRe: userrole Pin
Abhijit Jana4-Jan-10 3:23
professionalAbhijit Jana4-Jan-10 3:23 
QuestionApplication Variable dissappearing Pin
markymark823-Jan-10 23:50
markymark823-Jan-10 23:50 
AnswerRe: Application Variable dissappearing Pin
Dinesh Mani4-Jan-10 0:31
Dinesh Mani4-Jan-10 0:31 
QuestionSending SMS from C# .net Pin
Hema Bairavan3-Jan-10 23:32
Hema Bairavan3-Jan-10 23:32 
AnswerRe: Sending SMS from C# .net Pin
Deepak the Cool4-Jan-10 0:06
Deepak the Cool4-Jan-10 0:06 
AnswerRe: Sending SMS from C# .net Pin
Dinesh Mani4-Jan-10 0:24
Dinesh Mani4-Jan-10 0:24 
GeneralRe: Sending SMS from C# .net Pin
Hema Bairavan4-Jan-10 0:42
Hema Bairavan4-Jan-10 0:42 
GeneralRe: Sending SMS from C# .net Pin
Dinesh Mani4-Jan-10 0:51
Dinesh Mani4-Jan-10 0:51 
QuestionGet ip address of Sharepoint Server Pin
sarah_chandran3-Jan-10 23:24
sarah_chandran3-Jan-10 23:24 
QuestionRegarding PageMethods........... Pin
dayakar_dn3-Jan-10 21:57
dayakar_dn3-Jan-10 21:57 
AnswerRe: Regarding PageMethods........... Pin
Not Active4-Jan-10 1:09
mentorNot Active4-Jan-10 1:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.