我使用C#语言和Visual Studio 2013年我想在我的网站上显示多行,但是它只是显示的第一个结果我怎样才能显示mutlitple排在Visiual工作室2013网站项目
我米试图
String show = "Select Posts from userPosts where Username='John'";
SqlCommand com = new SqlCommand(show, con);
String str = com.ExecuteScalar().ToString();
Response.Write(str);
这仅显示与用户名JOHN
的第一个结果,但我希望他们所有。