using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{
    Business_OBG obj = new Business_OBG();
    protected void Page_Load(object sender, EventArgs e)
    {
         
    }
    public void Button1_Click(object sender, EventArgs e)
    {
        obj.InsertEmp(TxtName.Text, TxtAddress.Text, TxtPhone.Text, TxtEmail.Text);
       // dis();
    }
    public void dis()
    {
        GridView1.DataSource = obj.MyDs();
        GridView1.DataBind();
    }

    protected void ObjectDataSource1_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
    {

    }
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
}
