Example #1
0
        protected void btnSet_Click(object sender, EventArgs e)
        {
            int percent = -1;

            try
            {
                percent = Convert.ToInt32(tboxPrecent.Text.Trim());
            }
            catch (Exception ee)
            {
                Response.Write("<script language='javascript'>alert('请正确填写百分数!');</script>");
                return;
            }
            try
            {
                if (percent == -1)
                {
                    Response.Write("<script language='javascript'>alert('请填写百分数!');</script>");
                    return;
                }
                SellersBLL.UpdateSellerMsgsendPrecent(tboxNick.Text.Trim(), percent);
            }
            catch (Exception esss)
            {
                Response.Write("<script language='javascript'>alert('设置失败!');</script>");
            }
        }