在JS中怎么调用后台没有返回值的方法

在JS中如何调用后台没有返回值的方法?
我现在是在JS函数中这样
JScript code

function  To(s)
{
var a="1";
 var a1="<%=Open("+a+") %>";
}



CS中:
C# code

 public string Open(string a)
    {
        if (a.Equals("1"))
        {
            openwin();
            return a;
        }
        else
        {
            return null;
        }
 
    }


现在是好像不起作用?这个值没传进去啊

------解决方案--------------------
JScript code

//接受并处理服务器方法执行返回的结果
function  To(s)
{
    var a="1";
    CallServerMethod(a,null);
}
       //接受并处理服务器方法执行返回的结果
        function Success(args, context) {
            //通过args可以拿到服务器的返回值
            //message.innerHTML = args;
        }
        //当接收服务器返回的结果发生了异常时调用的方法
        function Error(args, context) {
            //message.innerHTML = "发生了异常";
        }

------解决方案--------------------
HTML code

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script>
        function ajaxPost() {
            var value = document.getElementById('<%=txt.ClientID%>').value;
            CallServerMethod(value, null);
        }

        function Success(args, context) {
            if (args != 'error') {
                alert(args);
            }
        }        
        function Error(args, context) {
            alert('error');
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    please enter 1
    <asp:TextBox ID="txt" runat=server></asp:TextBox>
    <asp:Button ID="btn" runat="server" OnClientClick="ajaxPost();return false;" Text="Click Me" />
    </form>
</body>
</html>

------解决方案--------------------
才看到你的信息。

我现在已经不用QQ了。

你现在遇到什么问题了
------解决方案--------------------
不刷新页的话,弹不出来这个,郁闷
--------------------------------

??