復制代碼 代碼如下:
void Page_Load(Object sender, EventArgs e) // Set up a connection and command
{
if (!Page.IsPostBack) // 第一次加載時才填充數據
{
String query = "select * from Authors where FirstName like '%JUSTIN%'";
myCommand.Fill(ds, "Authors");
myDataGrid.DataBind();
}
}
復制代碼 代碼如下:
<%@ Page EnableSessionState="false" %>
新聞熱點
疑難解答
圖片精選