protected void btn_ok_Click(object sender, EventArgs e) { Driver Addddrv = new Driver(); int drv_Id = int.Parse(txt_drv_id.Text); string drv_name = txt_drv_name.Text; int drv_contact = int.Parse(txt_contact.Text); string drv_nic = txt_nic.Text; int drv_lic = int.Parse(txt_lic.Text); Addddrv.AddDriver(drv_Id, drv_name, drv_contact, drv_nic, drv_lic); Response.Write("<script>alert('Success ');</script>"); }