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();
}
Subscribe to:
Post Comments (Atom)
Image Gallery - Image Add/Delete/Preview - Single Page App -
https://github.com/TheKalin/jQuery-File-Upload.MVC5 Helper Class / Models public class FilesHelperDB { dbImageGallery...
-
Remove Comments default.aspx <%--<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> ...
-
Deferred vs Immediate Query Execution in LINQ In LINQ, queries have two different behaviors of execution: immediate and deferred. In t...
-
just copy the default.aspx code and remove the comment default.aspx code <%--<body> <form id="form1" runat=...
No comments:
Post a Comment