public void showdata0(string s, SqlConnection con, RadGrid gv)
DataTable dt = AllClass.dt(s, con);
gv.DataSource = dt;
I got this Exception"RegisterRequiresControlState can only be called before and during PreRender."but asp:gridview works well
1 Answer, 1 is accepted
answered on 13 Sep 2013, 03:19 PM
I'm unable to identify the problem just by looking at these code fragments. Please provide a runnable demo so that I can debug it locally. Alternatively you can past self-contained demo in code-snippets here.
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.