<script type="text/javascript">
var myControlObject;
function pageLoad(sender, args)
{
    myControlObject = new AjaxSTYSeries.MyComponent();
    myControlObject.SetValue(100);
}

function btnClick_Onclick()
{
    var valueReturned = myControlObject.GetValue();
    alert("Zwrócona wartość to: "+valueReturned);
}
</script>

    <title>Implementacja niestandardowej kontrolki klienckiej</title>
</head>
<body>
    <form id="form1" runat="server">
  <asp:ScriptManager runat="server" ID="ScriptManager1">
    <scripts>
      <asp:ScriptReference path="MyControl.js" />
    </scripts>
  </asp:ScriptManager>
  <input id="btnClick" type="button" value="Kliknij" onclick="return btnClick_Onclick()" />
</form>
</body>
