4
Reply

Call connection string from class inside sqldatasource

Fareeda Hussain

Fareeda Hussain

Aug 30 2016 1:37 AM
227
 Hi
   Can anyone tell how  can I call connection string from class inside sql datasource  
 
for example like 
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ class.connectionstring %>" SelectCommand="SELECT * FROM [Course_details]"></asp:SqlDataSource> 

Answers (4)