Created
May 18, 2013 20:04
-
-
Save vgrem/5605615 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class DatabaseSettingsPage : GlobalAdminPageBase | |
{ | |
protected override void OnLoad(EventArgs e) | |
{ | |
//var isAdmin = SPFarm.Local.CurrentUserIsAdministrator(); | |
base.OnLoad(e); | |
} | |
protected override void OnInit(EventArgs e) | |
{ | |
btnSave.Click += new EventHandler(btnSave_Click); | |
base.OnInit(e); | |
} | |
void btnSave_Click(object sender, EventArgs e) | |
{ | |
CreateConnectionString(); | |
} | |
private void CreateConnectionString() | |
{ | |
var connectionStrings = new SecuredConnectionString("ConnectionStrings"); | |
connectionStrings.SetConnectionString("CRMConnString", txtConnectionString.Text); | |
connectionStrings.Update(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment