C#源码
string SqlConString = "Data Source=(local);Initial Catalog=FTPData;Integrated Security=True";SqlConnection con = new SqlConnection(SqlConString);con.Open();SqlCommand cmd = new SqlCommand(CreateSQLQueryString(), con);SqlDataReader dr = cmd.ExecuteReader();RepeaterResult.DataSource = dr;RepeaterResult.DataBind();dr.Close();con.Close();
aspx文件中