K
kfrost
Hello,
(First off this in a hosted environment which I can export a key generated
by aspnet_regiis so I'm resorting to this.)
I have a class named crypto which contains a function called Decrypt. My
code before I encrypted my connectionString was as follows:
<asp:SqlDataSource ID="SqlDataSourceSQLB1" runat="server"
ConnectionString="<%$ ConnectionStrings:dbConnectionString %>)"
OnSelecting="SqlDataSourceSQLB1_Selecting" SelectCommand="SELECT
[Description], [NavigateUrl], [id] FROM [NSV_Web_WhatsNew]">
</asp:SqlDataSource>
I need to take the what ConnectionStrings:dbConnectionString returns above
and pass it to Crypto.Decrypt()
I know this isn't correct but something like:
ConnectionString = <%#Crypto.Decrypt(<%$ConnectionStrings:dbConnectionString
$>) %>
Is there anyway to do this?
Thanks.
--
(e-mail address removed).<Remove This Before Emailing>
Network & Software Integration
www.n-sv.com
"Helping put the pieces of your IT puzzle together"
(First off this in a hosted environment which I can export a key generated
by aspnet_regiis so I'm resorting to this.)
I have a class named crypto which contains a function called Decrypt. My
code before I encrypted my connectionString was as follows:
<asp:SqlDataSource ID="SqlDataSourceSQLB1" runat="server"
ConnectionString="<%$ ConnectionStrings:dbConnectionString %>)"
OnSelecting="SqlDataSourceSQLB1_Selecting" SelectCommand="SELECT
[Description], [NavigateUrl], [id] FROM [NSV_Web_WhatsNew]">
</asp:SqlDataSource>
I need to take the what ConnectionStrings:dbConnectionString returns above
and pass it to Crypto.Decrypt()
I know this isn't correct but something like:
ConnectionString = <%#Crypto.Decrypt(<%$ConnectionStrings:dbConnectionString
$>) %>
Is there anyway to do this?
Thanks.
--
(e-mail address removed).<Remove This Before Emailing>
Network & Software Integration
www.n-sv.com
"Helping put the pieces of your IT puzzle together"