Hi Virendra,<input type="hidden" id="gwProxy"></input><input type="hidden" id="jsProxy" önclick="jsCall();" />
Thanks for your Reply. below is the code, what i wrote on "SignIn" button.
protected void SignIn_Click(object sender, EventArgs e)
{
string constr = ConfigurationSettings.AppSettings["MyLogin"];
SqlConnection conn = new SqlConnection(constr);
try
{
this.authendication();
conn.Open();
if (pwd == Password_txt.Text)
{
SqlCommand cm = new SqlCommand("select Designation from EmployeeMaster where EmployeeID = '" + EmpId_txt.Text + "'", conn);
SqlDataReader edr = cm.ExecuteReader();
edr.Read();
Design = edr["Designation"].ToString();
if (Design == "PM")
{
Response.Redirect("ProjectManagerForm.aspx");
}
else
{
Response.Redirect("TeamMemberForm.aspx");
}
edr.Close();
}
else
{
Result_txt.Visible = true;
Panel3.Visible = true;
Result_txt.Text = "The computer is locked Because of Invalid EmployeeId";
}
}
catch (SqlException exp)
{
//Response.Write("Enter the Correct EmployeeId / Password");
}
finally
{
conn.Close();
}
}