Update Controls and Content during a DirectEvent

  1. #1

    Update Controls and Content during a DirectEvent

    hi

    I have a problem. I change this EXT.NET demo sample.

    https://examples1.ext.net/#/XRender/...UpdateContent/

    I connect UserControl1 direct method 'OnClientClick' to 'DirectMethod()' function but when i run the demo system throw exception

    'The user control with Id = 'UC1' not found'

    if i not assign id to 'UserControl1' system throw this exception

    'The ajax instance method 'DirectMethod' is absent!'
  2. #2
    Hi,

    It is not bug

    1. ID is required for dynamic controls
    2. You have to recreate user controls during each request if you use direct methods from user control (it is ASP.NET requirement, otherwise we cannot find direct method handler (user control is absent on the server side))

Similar Threads

  1. DirectEvent on Button - Content Not allowed?
    By Tbaseflug in forum 1.x Help
    Replies: 3
    Last Post: Jul 10, 2012, 8:29 PM
  2. [CLOSED] Update ASP.Net Controls during DirectEvent/Method
    By alexkay in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 19, 2011, 6:23 AM
  3. Replies: 0
    Last Post: Oct 19, 2010, 7:39 AM
  4. [CLOSED] How to update panel content during directevent
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Oct 06, 2010, 1:32 PM
  5. DirectEvent controls update strategy?
    By lukasw in forum 1.x Help
    Replies: 1
    Last Post: May 27, 2010, 12:04 PM

Tags for this Thread

Posting Permissions