Link to home
Start Free TrialLog in
Avatar of karthik80c
karthik80cFlag for United States of America

asked on

why do we need to add dollar sign on asp datasource tag <% $ ConnectionStirngs : Con %>

Hi experts ,

Why the dollar symbol is needed on ASP- SqlDatasource tag and whats the use of it


<asp:SqlDataSource ID="Dropdown" runat="server" ConnectionString="<%$ ConnectionStrings:godaddyConnectionString %>" SelectCommand="select [Name] from [agent]"></asp:SqlDataSource>

Open in new window


Otherwise throws error as
Format of the initialization string does not conform to specification starting at index 0

Thanks Experts
ASKER CERTIFIED SOLUTION
Avatar of Pawan Kumar
Pawan Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial