//**************************************************************** // // The UpdateBtn_Click event handler on this Page is used to save // the settings to the configuration file. // //**************************************************************** void UpdateBtn_Click(Object sender, EventArgs e) { // Update settings in the database AdminDB admin = new AdminDB(); admin.UpdateModuleSetting(moduleId, "xmlsrc", XmlDataSrc.Text); admin.UpdateModuleSetting(moduleId, "xslsrc", XslTransformSrc.Text); // Redirect back to the portal home page Response.Redirect((String)ViewState["UrlReferrer"]); }
//**************************************************************** // // The UpdateBtn_Click event handler on this Page is used to save // the settings to the ModuleSettings database table. It uses the // ASPNetPortalDB() data component to encapsulate the data // access functionality. // //**************************************************************** private void UpdateBtn_Click(Object sender, EventArgs e) { // Update settings in the database AdminDB admin = new AdminDB(); admin.UpdateModuleSetting(moduleId, "src", Src.Text); admin.UpdateModuleSetting(moduleId, "height", Height.Text); admin.UpdateModuleSetting(moduleId, "width", Width.Text); // Redirect back to the portal home page Response.Redirect((String)ViewState["UrlReferrer"]); }