Is it possible to use a field name as a select parameter in an SQLDataSource?
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:DbConnection %>"
ProviderName="<%$ ConnectionStrings:DbConnection.ProviderName %>"
SelectCommand="select * from sometable where @FieldKey = @FieldValue">
<SelectParameters>
<asp:Parameter Name="FieldKey" Type="String" />
<asp:Parameter Name="FieldValue" Type="String" />
</SelectParameters>
</asp:SqlDataSource>