Practical No 8
Practical No 8
08
Pr 8a: Create a web application to demonstrate various uses and properties of SqlDataSource.
code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
namespace pr8a
SqlDataReader ds;
GridView1.DataBind();
}
protected void Button2_Click1(object sender, EventArgs e)
s.Insert();
s.Update();
s.Delete();
}
Design:
Output: Insert
Output: Modify
Output: delete
8b: Create a web application to demonstrate data binding using DetailsView and FormView Control.
output:
8c: Create a web application to display Using Disconnected Data Access and Databinding using
GridView.
Design:
Output: