I\'ve got a Repeater and its SqlDatasource nested inside a Gridview TemplatedField. The Repeater\'s datasource SelectCommand is set using the FormatString of an Eval fro
Why don't you define this WHERE clause as a const in your codebehind. Define:
protected const string SELECTCLAUSE = "SELECT Blah FROM TableName WHERE (StringField = '{0}')";
Then your SelectCommand property would be:
SelectCommand='<%# Eval("Bar", SELECTCLAUSE ) %>'