Place static AjaxMethod in seperate libray

  1. #1

    Place static AjaxMethod in seperate libray

    *Hi,

    I would like to be able to place my static [AjaxMethod] methods in a library seperate from my .aspx pages. *Since these are static [AjaxMethods] and no Page Lifecycle is needed, seperation from the .aspx page is best desired design. *I have tried putting these methods in seperate class but the compiler does not seem to add them to the Coolite.AjaxMethods array on the client.... is this possible ?


    Thanks,


    Michael
  2. #2

    RE: Place static AjaxMethod in seperate libray

    Hi Michael,

    We are working on new functionality which will enable adding AjaxMethods programatically and the Methods can reside in any class. Unfortunately I don't think this new functionality will make it into the v0.8.


    Geoffrey McGill
    Founder
  3. #3

    RE: Place static AjaxMethod in seperate libray

    I still think the AjaxMethod signature should reside in the aspx code behind. The AjaxMethod can easily call another shared method in your other library.
  4. #4

    RE: Place static AjaxMethod in seperate libray

    jchau (5/5/2009)I still think the AjaxMethod signature should reside in the aspx code behind. The AjaxMethod can easily call another shared method in your other library.
    I think this is the best approach personally, as it kind of mimics the architecture of a desktop app, where the code behind would call a method in another library, since the UI itself does not make any calls to methods. I personally think its much cleaner to completely separate the UI elements from any method calls/functionality.

Similar Threads

  1. Replies: 13
    Last Post: May 16, 2011, 1:26 PM
  2. Replies: 6
    Last Post: Dec 04, 2009, 11:01 PM
  3. How to create seperate project for UserControls?
    By dbassett74 in forum 1.x Help
    Replies: 1
    Last Post: May 18, 2009, 2:14 PM
  4. static ajaxmethod
    By [WP]joju in forum 1.x Help
    Replies: 2
    Last Post: Mar 04, 2009, 9:47 AM
  5. Paginating with seperate DB pulls
    By JsonTerre in forum 1.x Help
    Replies: 2
    Last Post: Dec 09, 2008, 4:11 PM

Posting Permissions