REA_ANDREW
asked on
Strange Error
I have a datasource which I use with a gridview, here is the line
<asp:SqlDataSource ID="sub_table_conn" runat="server" ConnectionString="<%$ ConnectionSrings:textConn %>" SelectCommand="SELECT sub_type_id,sub_type FROM tblsubcategories">
</asp:SqlDataSource>
No I get this message. Do I have to register the connection or something,? Thanks in advance Andrew
Here is the error
Parser Error Message: The expression prefix 'ConnectionSrings' was not recognized. Please correct the prefix or register the prefix in the <expressionBuilders> section of configuration.
Source Error:
Line 12: <asp:GridView ID="GridView1" runat="server" DataSourceID="sub_table_co nn">
Line 13: </asp:GridView>
Line 14: <asp:SqlDataSource ID="sub_table_conn" runat="server" SelectCommand="SELECT sub_type_id,sub_type FROM tblsubcategories" ConnectionString="<%$ ConnectionSrings: textConn %>" >
Line 15: </asp:SqlDataSource>
Line 16: </div>
Source File: /andy/test_area/default.as px Line: 14
<asp:SqlDataSource ID="sub_table_conn" runat="server" ConnectionString="<%$ ConnectionSrings:textConn %>" SelectCommand="SELECT sub_type_id,sub_type FROM tblsubcategories">
</asp:SqlDataSource>
No I get this message. Do I have to register the connection or something,? Thanks in advance Andrew
Here is the error
Parser Error Message: The expression prefix 'ConnectionSrings' was not recognized. Please correct the prefix or register the prefix in the <expressionBuilders> section of configuration.
Source Error:
Line 12: <asp:GridView ID="GridView1" runat="server" DataSourceID="sub_table_co
Line 13: </asp:GridView>
Line 14: <asp:SqlDataSource ID="sub_table_conn" runat="server" SelectCommand="SELECT sub_type_id,sub_type FROM tblsubcategories" ConnectionString="<%$ ConnectionSrings: textConn %>" >
Line 15: </asp:SqlDataSource>
Line 16: </div>
Source File: /andy/test_area/default.as
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It happens to us all ;o)
ASKER
Cheers guys
Andrew