Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public partial class PersonsPage : System.Web.UI.Page
- {
- public MyDBEntities db;
- public void Page_Init(object sender, EventArgs e)
- {
- db = new MyDBEntities ();
- GridView1.DataSource = db.Persons;
- GridView1.DataBind();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement