Nov 28, 2008

Fill Gridview with Disconnected Architecture

protected void Page_Load(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection("Server="Yours";database="Yours";Integrated Security=true");
SqlDataAdapter da = new SqlDataAdapter("Select * from Login", conn);
ds = new DataSet();
da.Fill(ds, "Login");
GridView1.DataSource = ds.Tables[0].DefaultView;
GridView1.DataBind();
}

No comments:

Image Gallery - Image Add/Delete/Preview - Single Page App -

https://github.com/TheKalin/jQuery-File-Upload.MVC5 Helper Class / Models   public class FilesHelperDB     {         dbImageGallery...