protected void txtbxPlacementId_TextChanged(object sender, EventArgs e)
        {
            try
            {

                Areffer.Attributes.Remove("data-content");
                Areffer.Attributes.Remove("data-original-title");
                UserBLL userBll = new UserBLL();
                if (txtbxPlacementId.Text != "")
                {
                    if (txtbxPlacementId.Text != txtbxUserName.Text)
                    {
                        DataTable dt = userBll.GetUserInfoById(txtbxPlacementId.Text);
                        if (dt.Rows.Count > 0)
                        {
                            if (userBll.checkPlacementIdValidity(dt.Rows[0]["UserId"].ToString(),
                                ddlPosition.SelectedValue))
                            {
                                txtbxPlacementId.Text = "";
                                string message = " <span class='actionTopic'>" +
                                                 " Placement Informarion is not correct!!" +
                                                 ddlPosition.SelectedItem.Text +
                                                 " Is not free of the Placement Id</span>.";
                                MyAlertBox(
                                    "var callbackOk = function () { window.location = \"/page/registration.aspx\"; }; WarningAlert(\"" +
                                    "Process Succeed" + "\", \"" + message + "\", \"\");");
                                hdnvalidplace.Value = "1";
                            }
                            else
                            {
                                string TransferToName = "Name:" + dt.Rows[0]["FirstName"].ToString() + " " +
                                                        dt.Rows[0]["LastName"].ToString();
                                string Contactinfo = "Cell:" + dt.Rows[0]["MobileNo"].ToString() + ", Email:" +
                                                     dt.Rows[0]["Email"].ToString();
                                Areffer.Attributes.Add("data-content", Contactinfo);
                                Areffer.Attributes.Add("data-original-title", TransferToName);
                                hdnvalidplace.Value = "0";

                            }
                        }
                    }
                    else
                    {
                        txtbxPlacementId.Text = "";
                        ddlPosition.SelectedIndex = 0;
                        string message = " <span class='actionTopic'>" +
                                         " Placement Informarion is not correct!!" +
                                         ddlPosition.SelectedItem.Text +
                                         " Is not free of the Placement Id</span>.";
                        MyAlertBox(
                            "var callbackOk = function () { window.location = \"/page/registration.aspx\"; }; WarningAlert(\"" +
                            "Process Succeed" + "\", \"" + message + "\", \"\");");
                        hdnvalidplace.Value = "1";
                    }
                }
            }
            catch (Exception)
            {

                //  throw;
            }
        }
        protected void ddlPosition_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                UserBLL userBll = new UserBLL();
                if (userBll.checkPlacementIdValidity(txtbxPlacementId.Text, ddlPosition.SelectedValue))
                {
                    txtbxPlacementId.Text = "";
                    string message = " <span class='actionTopic'>" + " Placement Informarion is not correct!!" + ddlPosition.SelectedItem.Text + " Is not free of the Placement Id</span>.";
                    MyAlertBox("var callbackOk = function () { window.location = \"/page/registration.aspx\"; }; WarningAlert(\"" +
                        "Process Succeed" + "\", \"" + message + "\", \"\");");
                    hdnvalidplace.Value = "1";
                }
                else
                {
                    hdnvalidplace.Value = "0";
                }

            }
            catch (Exception)
            {

                throw;
            }
        }