<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MyControl1.ascx.cs" Inherits="MyControl1" %>
<script type="text/javascript">
    function ClientCallbackHandler(rValue)
    {
        document.getElementById("result").innerText = rValue;
    }
</script>
<table>
    <tr>
        <td>Wartość 1: </td>
        <td><input type="text" id="txtValue1"/></td>
    </tr>
    <tr>
        <td>Wartość 2:</td>
        <td><input type="text" id="txtValue2"/></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td><input type="button" id="btnCalculate" value="Oblicz" onclick="AddValues(document.getElementById('txtValue1').value+'|'+ document.getElementById('txtValue2').value)" />
        <span id="result"></span></td>
    </tr>
</table>
