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
Have you tried escaping the single quote characters?
... WHERE (StringField = \'{0}\') ...