script runat="server"

Jul 27, 2011 at 11:27 AM

Hi Anton.

is it possible to include some server-side code, within a script runat="server" tag, within an mdo:asp section?

I'm trying to implement an init function for a radgrid (see, by including a script tag with server-side code within my mdo:asp section:

<mdo:asp xmlns:asp="asp" xmlns:telerik="telerik">
<script runat="server">
 protected void RadGrid1_Init(object sender, System.EventArgs e)

where of course I have my Radgrid1 radgrid defined and working properly. Looks like my init function is never called (also tested with a simple Page_Load function).

Is it possible to do something like this, or should I move my code to external files?

Thank you,