protected void btncode_Click(object sender, EventArgs e) { tbl1.Visible = false; tbl2.Visible = true; BEStudent objbestudent = new BEStudent() { strPassword = GetRandomPassword(5), IntTransID = Convert.ToInt64(ViewState["TransID"]) }; BStudent objbstudent = new BStudent(); objbstudent.BSetAuthenticationCode(objbestudent); }