protected void Unnamed1_Click(object sender, ImageClickEventArgs e) { int volumeId = Convert.ToInt32(DropDownList1.SelectedValue); string context = FCKeditor1.Value; string title = sectionname.Text; int cl = context.Length; int count = Ia.Auaddsection(volumeId, title, cl, context); if (count > 0) { ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "ok", "<script type='text/javascript'>alert('章节添加成功,请等待管理员审核!');</script>", false); } else { ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "err", "<script type='text/javascript'>alert('章节添加失败!');</script>", false); } }
public int Auaddsection(int volumeId, string sectionTitle, int charnum, string Context) { return(IA.Auaddsection(volumeId, sectionTitle, charnum, Context)); }