PDA

View Full Version : [CLOSED] AddAfterClientInitScript not working



siyahgul
Apr 12, 2016, 1:16 PM
hi.


store1.AddAfterClientInitScript("alert('test');");

good working.

fabricio.murta
Apr 12, 2016, 7:21 PM
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!

siyahgul
Apr 12, 2016, 9:12 PM
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

geoffrey.mcgill
Apr 12, 2016, 11:28 PM
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?3440-Forum-Guidelines-For-Posting-New-Topics

siyahgul
Apr 16, 2016, 2:13 PM
Thank you. problem is solved.

geoffrey.mcgill
Apr 16, 2016, 6:37 PM
Great to hear the problem has been solved.

Please post the solution. This may help other community members in the future.

siyahgul
Apr 17, 2016, 8:16 PM
clear history and recreate project :)