i am D. Srinivas Rao.
in my aspx page i have a JavaScript function for calling a server side event when click on the Check box. The following is the code for Java Script Function.
<telerik:RadCodeBlock runat="server">
<script language="javascript" type="text/javascript">
function GetMessage(sender, args) {
PageMethods.CompletedCheck();
alert("Hii");
}
</script>
<telerik:RadScriptManager id="RadScriptManager" runat="server"
EnablePageMethods="True">
</telerik:RadScriptManager>
</telerik:RadCodeBlock>
and this function called in CheckBox checked event.. the Following is the Code for CheckBox Control
<telerik:GridTemplateColumn UniqueName="Complete" HeaderText="Completed" AllowFiltering="false">
<ItemTemplate>
<asp:Panel ID="Panel1" runat="server" Width="2px">
<asp:CheckBox ID="chkComplete" runat="server" AutoPostBack="true" onclick="GetMessage()" />
</asp:Panel>
</ItemTemplate>
</telerik:GridTemplateColumn>
and my Code Behind is
<System.Web.Services.WebMethod()> _
Public Shared Sub CompletedCheck(ByVal sender As Object, ByVal e As System.EventArgs)
//code here
End Sub
in the above grid template check-box control will fire the JavaScript function GetMessage() Well, but it doesn't execute the Code Behind Event.
Please Help me how to execute the Code Behind Method using JavaScript Function..
Thank You
D.Srinivasa Rao