Calling a Decrypt function within a class from a Data Binding expr

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top