protected bool SaveToDB(string path, string savepath) { try { string templatetype = DropDownList1.SelectedItem.Value; string templatetypename = DropDownList1.SelectedItem.Text; WsSystem ws = new WsSystem(); PrintSet bb = new PrintSet(); bb.ID = ""; bb.TemplatePath = savepath; bb.TemplateType = templatetype; bb.MEMO = templatetypename; bb.ACTIVE = "0"; ws.SavePrintLabelTemplate(bb); return(true); } catch (Exception ex) { Label1.Text = ex.ToString(); return(false); } }