Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi,
i want to fix header of my gridview and i have use jquery but when i use control of ajaxtoolkit i have this error

The Controls collection can not be modified because the control contains code blocks (ie ie <% ...% > ) .

this is link wich i uplade same files plz help me

https://www.mediafire.com/folder/8g8bqza2swiee/GridView[^]
Posted

1 solution

try this..

JavaScript
$(document).ready(function () {
            $('#GridView1').Scrollable({
                ScrollHeight: 500
            });
        });


and enable the clientidmode to static

ASP.NET
<asp:gridview id="GridView1" runat="server" clientidmode="Static"></asp:gridview>
 
Share this answer
 
v2
Comments
Member 11573837 19-Apr-15 9:12am    
hi,
thank you Rana Waqas for answering me
i have try your solution and i have an other eroor

Unable to find appropriate resources for the specified culture or the neutral culture . Make sure " AjaxControlToolkit.Properties.Resources.NET4.resources " was correctly embedded or linked in the assembly " AjaxControlToolkit " at compile time , or that all assemblies required are loadable and fully satellites signed.
Rana Waqas 19-Apr-15 10:01am    
You are using CalenderExtender which needs script manager to run
Member 11573837 19-Apr-15 10:20am    
hi Rana Waqas,
it work thank you a lot

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900