在javascript中  调用 点击函数
    var btn_ret = document.forms(0).btn_Add.click();   根据返回值btn_ret在做相应的处理但是在cs文件中这样来定义。
    protected int  btn_Add_Click(object sender, EventArgs e)
    {
        //== = = = 代培人员信息表的 添加  txt_itemno
        //= = = 
        if (txt_itemno.Text.ToString() == "" || txt_itemno.Text.ToString() == null)
        {
            conn.Alert("txt_itemno", "必须输入项目编号,方可向下填写其它信息!", Page);
            return 0;
        }
        else
        {
            //= = =   代培记录必须完善后,方可进行此表的维护  
            //= = = GetRsCount(string table_name)  记录是否为空  RemainFeeTbl ("t_user where id="+Request["id"])</param>
            int i_cnt = 0;
            i_cnt = conn.GetRsCount("AgentTrainRecordTbl where AgentItemNo='" + txt_itemno.Text.ToString() + "'");
            if (i_cnt == 0)
            {   //= = = 记录为空
                conn.Alert("txt_itemno", "代培记录必须完善后,方可进行此表的维护  !", Page);
                return 0;
            }
            //Page.RegisterStartupScript("", "<script>window.open('TrainDetail_Oper.aspx?itemno=" + txt_itemno.Text.ToString() + "','','scrollbars=yes,status=yes,width=1024,height=400,top=0,left=0');</script>");
            //Response.Redirect("TrainDetail_Oper.aspx?itemno=" + txt_itemno.Text.ToString());
            return 1;
        }
}会报错误:错误 1 “int InfoMana_AgentTrainRecord_Oper.btn_Add_Click(object, System.EventArgs)”的返回类型错误 D:\Website\Sutra\InfoMana\AgentTrainRecord_Oper.aspx 159
btn函数不能有返回值,能用其他函数来达到这个效果吗?
要想实现这个功能怎么来做????