selectCommand question

L

Lucas Hernandez

I'am following instroction from a website to generete a nested detail
grid... but the following code is giving me an error

<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:click360_02ConnectionString %>"
SelectCommand='<%# Eval("eID", "select * from tbEntity where [eID]
={0}") %>'</asp:SqlDataSource>

eID is an string... the error = System.Data.SqlClient.SqlException:
Invalid column name 'bu'.
where 'bu' is the value of eID field

any idea on how to fix this.. (the sample would run with eID as integer)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top