GridView和DetailsView

2024-12-03 20:25:41
推荐回答(1个)
回答1:

你恐怕需要再设置下DetailView的DataSource的Select语句。
比如:
ConnectionString="<%$ ConnectionStrings:SqlServerService %>"
SelectCommand="SELECT * FROM [TestTable] WHERE (([id] = @id) AND ([title] = @title))">


Type="String"