Problem with RegisterClientScriptBlockhttp://forums.asp.net/t/1769754.aspx/1?Problem+with+RegisterClientScriptBlockWed, 15 Feb 2012 09:09:41 -050017697544833212http://forums.asp.net/p/1769754/4833212.aspx/1?Problem+with+RegisterClientScriptBlockProblem with RegisterClientScriptBlock <p>Hi</p> <p>I've a strange problem using&nbsp;RegisterClientScriptBlock to update the content of a UpdatePanel.</p> <p>Server side I build a script, that sometimes can be very big, and if i inject it with&nbsp;RegisterClientScriptBlock, it doesn't run with Firefox, Opera and Safari, while it runs perfectly with IE and Chrome.</p> <p>I tried to &quot;cut&quot; the script, to limit the size, and by this way it runs with every browser, but obviously I need the entire script.</p> <p>What can i do to solve this problem?</p> <p></p> 2012-02-15T08:38:54-05:004833234http://forums.asp.net/p/1769754/4833234.aspx/1?Re+Problem+with+RegisterClientScriptBlockRe: Problem with RegisterClientScriptBlock <p>May be problem is the script can you post the script that you are registering?</p> <p></p> 2012-02-15T08:45:14-05:004833256http://forums.asp.net/p/1769754/4833256.aspx/1?Re+Problem+with+RegisterClientScriptBlockRe: Problem with RegisterClientScriptBlock <pre class="prettyprint">var mydata = [ {Cliente:&quot;ARTIAMO A.C.&quot;,Sede:&quot;C. GIOCHI ARTIAMO&quot;,Reparto:&quot;&quot;,Denominazione:&quot;C. GIOCHI ARTIAMO&quot;,Mensa:&quot;C. GIOCHI ARTIAMO&quot;,PDC:&quot;1176&quot;,Data:&quot;&quot;, Ordine:&quot;&quot;, IdCli:&quot;1247|2451||PR|&quot;, Gruppo:&quot;&quot;}, . . 200 records similar to the first . . ]; jQuery(&quot;#gridOrdini&quot;).jqGrid({ data: mydata, datatype: &quot;local&quot;, height: 780, colNames:['Cliente','Sede','Reparto','Denominazione','Mensa','PDC','Data', 'Ordine', 'IdCli', 'Gruppo'], colModel:[ {name:'Cliente',index:'Cliente',sortable: true, width:15}, {name:'Sede',index:'Sede',sortable: true, width:15}, {name:'Reparto',index:'Reparto',sortable: true, width:15}, {name:'Denominazione',index: 'Denominazione',sortable: true, width:15}, {name:'Mensa',index:'Mensa',sortable: true, width:15}, {name:'PDC',index:'PDC',sortable: true, width: 4}, {name:'Data',index:'Data', sortable: true, width: 13}, {name:'Ordine',index:'Ordine', sortable: true , width: 7}, {name:'IdCli',index:'IdCli', hidden: true }, {name:'Gruppo',index:'Gruppo', sortable: true, hidden: true } ], multiselect: false, rowNum: 200, autowidth: true, shrinkToFit: true, onCellSelect: function(rowid, index, contents, event) {return LoadOrderFromTable(rowid);}, loadComplete: function() { setRowColor();}, caption: &quot;&quot; });</pre> 2012-02-15T08:54:29-05:004833263http://forums.asp.net/p/1769754/4833263.aspx/1?Re+Problem+with+RegisterClientScriptBlockRe: Problem with RegisterClientScriptBlock <p>And i inject it into the page whit:</p> <pre class="prettyprint">ScriptManager.RegisterClientScriptBlock(upPanMain, upPanMain.GetType(), &quot;ConfigureGrid&quot;, _ScriptToRegister2, True)</pre> 2012-02-15T08:56:43-05:004833300http://forums.asp.net/p/1769754/4833300.aspx/1?Re+Problem+with+RegisterClientScriptBlockRe: Problem with RegisterClientScriptBlock <p>You could try following ways to solve your issue.</p> <p>1.Try debugging your script with firefox javascript debugger.</p> <p>OR</p> <p>2.After running your page GO to Firefox Menu-&gt;Tools-&gt;ErrorConsole.It displays all the script errors.</p> <p></p> <p>Find out the exact error and then try to solve it.</p> <p>This may help you.</p> 2012-02-15T09:09:41-05:00