[CLOSED] AddAfterClientInitScript not working

  1. #1

    [CLOSED] AddAfterClientInitScript not working

    hi.
    store1.AddAfterClientInitScript("alert('test');");
    good working.
    Last edited by fabricio.murta; Apr 20, 2016 at 2:05 PM.
  2. #2
    Hello @siyahgul!

    It is working fine here. You probably are adding it on a part of the code that is not being executed or is not supposed to work with this.

    Can you provide a running example with the context reproducing the issue?

    One place that this is supposed to work, for example, is on the Page_Load() function.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    public class StoreExtended : Store
    {
         protected override void OnInit(EventArgs e)
         {
               this.AddAfterClientInitScript("alert('aa');");
               base.OnInit(e);
         }
    }
    ext.net 3 working
    ext.net 4 not working
  4. #4
    Hello,

    Your code sample does not reproduce the problem.

    Please review and accept the Forum Guidelines before posting again in the forums:

    http://forums.ext.net/showthread.php...ing-New-Topics
    Geoffrey McGill
    Founder
  5. #5
    Thank you. problem is solved.
  6. #6
    Great to hear the problem has been solved.

    Please post the solution. This may help other community members in the future.
    Geoffrey McGill
    Founder
  7. #7
    clear history and recreate project :)

Similar Threads

  1. Replies: 0
    Last Post: Oct 07, 2014, 8:06 AM
  2. Replies: 0
    Last Post: Oct 30, 2012, 5:34 PM
  3. Replies: 3
    Last Post: Feb 21, 2012, 7:46 AM
  4. Replies: 3
    Last Post: Mar 02, 2010, 12:43 PM

Posting Permissions