Hi
I have problem, how call function asp.net from JavaScript
I got code but not working
Problem how to show message box when call function cobatest
<asp:Content ID="Content1" runat="server"
ContentPlaceHolderID="ContentPlaceHolder4">
<head>
<title></title>
<script type="text/javascript">
function xtest() {
PageMethods.cobatest();
}
</script>
</head>
<table class="style1">
<tr>
<td>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
</td>
<td> </td>
</tr>
<tr>
<td>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<input id="btnGetTime" type="button" value="Show Current Time" onclick='xtest();' />
</td>
<td> </td>
</tr>
</table>
</asp:Content>
<System.Web.Services.WebMethod()> _
Protected Sub cobatest()
MsgBox("Hallo")
End Sub