E
Eric
Hi,
i tested this sql command directly with sql server and it works:
select left(field1,10) from mytable
Now, i tried the same in aspx file: i dragged a sqldatasource control and
changed manually the select commend like this:
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:myconn %>"
SelectCommand="SELECT left(field1,10) FROM [mytable]">
</asp:SqlDataSource>
But here, i get the error:
"no field or property met with the name field1in the selected source .."(or
something)
Any way to limit the text of field 'field1' to 10 characters?
Thanks
Eric
i tested this sql command directly with sql server and it works:
select left(field1,10) from mytable
Now, i tried the same in aspx file: i dragged a sqldatasource control and
changed manually the select commend like this:
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:myconn %>"
SelectCommand="SELECT left(field1,10) FROM [mytable]">
</asp:SqlDataSource>
But here, i get the error:
"no field or property met with the name field1in the selected source .."(or
something)
Any way to limit the text of field 'field1' to 10 characters?
Thanks
Eric