Fareeda Hussain

Fareeda Hussain

  • NA
  • 93
  • 92.4k

Call connection string from class inside sqldatasource

Aug 30 2016 1:37 AM
 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)