How to execute ajax code within an Ajax Extender?

Last post 08-29-2007 10:03 AM by dwhite. 3 replies.

Sort Posts:

  • How to execute ajax code within an Ajax Extender?

    08-28-2007, 4:36 PM
    • Loading...
    • Luis Simoes
    • Joined on 04-11-2007, 11:07 PM
    • Portugal
    • Posts 38

    Hi,

    I am creating an extender, till now its all javascript based... but now i need to write some settings to the database and also to execute a workflow...

    How can i achieve this from the extender? Is it possible?

    I also thought about executing asp.net code from javascript but i dont know if it is possible or how to do it...

     Best Regards,

  • Re: How to execute ajax code within an Ajax Extender?

    08-28-2007, 9:25 PM
    Answer
    • Loading...
    • dwhite
    • Joined on 02-08-2007, 9:25 AM
    • Bristol, CT
    • Posts 1,399

    Here's a very good article on the topic http://www.notesoncode.com/articles/2007/06/building-a-custom-ajax-control-extender/

    Hope this helps...

    -Damien

    Visoft, Inc - Home | Blogs

    Latest Blog Post: ASP.NET AJAX Page Methods
  • Re: How to execute ajax code within an Ajax Extender?

    08-29-2007, 5:04 AM
    • Loading...
    • Luis Simoes
    • Joined on 04-11-2007, 11:07 PM
    • Portugal
    • Posts 38

    Thank you :)

     So from what i have understood i have to use a web service for that right? I can really integrate my code and use my assemblies directly right?

     

    Best Regards,

    Luis Simões

  • Re: How to execute ajax code within an Ajax Extender?

    08-29-2007, 10:03 AM
    • Loading...
    • dwhite
    • Joined on 02-08-2007, 9:25 AM
    • Bristol, CT
    • Posts 1,399

    I believe so.  I struggled with the same thing (see: http://forums.asp.net/t/1145140.aspx); not sure how to embed the server code in the the control.  Unfortunately, I'm still not sure of the best way to do this.  I ended up just adding the WebMethod in the page similar to what is being done in the article on my earlier post.

    -Damien

    Visoft, Inc - Home | Blogs

    Latest Blog Post: ASP.NET AJAX Page Methods
Page 1 of 1 (4 items)
Microsoft Communities
Page view counter