ResponseScripts.Add is not working as Expected

0 Answers 56 Views
Ajax
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
Sachita asked on 29 Apr 2021, 05:24 PM

Hi Team,

Current Version of Telerik 2015.3.1111.35 with .NetFramework 4.8.

RadAjax  version - 1.5.1

IIS Apppool - v4.0

Tested in Both Edge(90.0.818.46) and IE11 Browser.

Snippets with .Netframework 4.8(Not Working):

<INPUT onclick="javascript:setTimeout('window['Control_RadAjaxManager'].AsyncRequest(\'Control$ShareRadioButton\',\'\')', 0)" 

Actual Snippet with .Netframework 3.5(Working):

<INPUT onclick="javascript:setTimeout('window[\'Control_RadAjaxManager\'].AsyncRequest(\'Control$ShareRadioButton\',\'\')', 0)"

Code Snippet:

private void AddAjaxResponseScripts()
        {
            this.RadAjaxManager.ResponseScripts.Add("Sample.Controls.init(); if(Sample.QueryAddEdit) { Sample.AddEdit.init(); } ");
        }

Observation: Here Escape characters are not getting loaded properly .Missing  Escape characters window['Control_RadAjaxManager'].

Tried with Upgrade of Telerik Controls - R3 2020.3.915.45 and .Netframework 4.8 - but still issue exists.

Can anyone please help on this issue?

No answers yet. Maybe you can help?

Tags
Ajax
Asked by
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or