locked
Clone ASP.Net AJAX Control client side RRS feed

  • Question

  • User407913834 posted

    I have an ASP.Net composite control which has an associated AJAX control. For example, the composite control contains a textbox and a calendar image. The AJAX control adds handlers to the click event of the image, change event of the textbox etc.

    I need to clone the control in JavaScript. I am able to use cloneNode, modify the ID's and append to the document. This adds a new textbox and calendar image to the page. However, it does not create the AJAX Control or clone the handlers. Is there any way to do this?

     Thanks, Angie

     

    Thursday, November 1, 2007 9:39 AM

Answers

  • User-1087479560 posted

     Hi,

    You need to call $create function to create extenders on client side. And the easiest way to find out how to use this function is to view the source of the generated page.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, November 6, 2007 9:39 PM

All replies

  • User-1087479560 posted

     Hi,

    You need to call $create function to create extenders on client side. And the easiest way to find out how to use this function is to view the source of the generated page.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, November 6, 2007 9:39 PM
  • User407913834 posted

    Thanks, that's what I've done. I was hoping there was an easier way.

    Wednesday, November 7, 2007 8:22 AM