ASP .NET Business Delegate Pattern

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CodeWorld
    New Member
    • Jun 2010
    • 1

    ASP .NET Business Delegate Pattern

    Hello there,

    I am using ASP .NET and C#, and using the code-behind-pages concept.

    I am trying to implement a business delegate pattern in ASP .NET to reduce coupling between the presentation and business tiers.

    I want to have several ASP pages send information (through asp buttons clicks) to a "business delegate" ASP page, which will in turn send the necessary information to a C# method.

    The problem is that each button_click event in ASP .NET is directly tied to a C# method. I am having trouble understanding how to separate the presentation and business logic because of that.

    Any ideas? Thanks :)
  • Joseph Martell
    Recognized Expert New Member
    • Jan 2010
    • 198

    #2
    Why the intermediary "business delegate" ASP page? Why not send the information directly to the C# method?

    When you say that the "ASP pages send information (through asp button clicks) to a 'business delegate'" what is your concept of "button clicks" in the above context? The only reason that I ask is that the C# event handlers do not appear to be satisfactory according to your next paragraph.

    I work with some web services that use a delegate pattern in their setup, similar to what you are talking about. We accomplish this by putting our business logic into a separate dll. The code-behind logic (we use VB for our web services) merely takes incoming information and calls the appropriate dll method.

    Comment

    Working...