protected void btnSubmit_Click(object sender, EventArgs e) { try { UspInsertSpecialineData uspParamData = new UspInsertSpecialineData(); uspParamData.XmlData = this.loadInfoXML(); logger.Info("Specialline information with XML style will be inserted:" + uspParamData.XmlData); this.uspInsertDao.RunProc(uspParamData); logger.Info("Specialline information inserted done."); Response.Redirect("../InformationManager/SpeciallineList.aspx"); } catch (Exception Ex) { logger.Error("Specialline information inserted failed with excpetion:" + Ex.Message); } }
public void RunProc(UspInsertSpecialineData obj) { String stmtId = "uspInsertSpecialineDataid"; this.sqlMapper.QueryForObject(stmtId, obj); }