-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: LovedJohnySmith
Message 3 in Discussion
Hey man! You can validate those parameters using Context object. see the
following code snippets.
Having the functions now we can override the Install(IDictionary stateSaver)
and Uninstall(IDictionary savedState). In the Install method besides running
the SQL script on to the server you can save the connection data submitted by
the user. It's dangerous to save connection strings in clear, so please use
RijndaelManaged method to encrypt it. You can find the class in the source as
well. you need to save the connection string because you need it at uninstall
to drop the database ASPstate. if( Context.Parameters["DBName"].Length
>0 && Context.Parameters["userName"].Length > 0 &&
Context.Parameters["userPass"].Length > 0) { string conStr =
GetLogin( Context.Parameters["DBName"],
Context.Parameters["userName"], Context.Parameters["userPass"], "master");
} private static string GetLogin(string databaseServer,
string userName,string userPass,string database)
{
return "server=" + databaseServer +
";database="+database+";User ID=" + userName +
";Password=" + userPass;
} Thanx, Smith
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]