protected void btnLeads_Click(object sender, EventArgs e)
 {
     try
     {
         if (txtName.Text.Length > 0)
         {
             DropDownList ddlPropertyName = (DropDownList)Master.FindControl("ddlProperty");
             string       PropertyName    = ddlPropertyName.SelectedItem.Text;
             string       PropertyVale    = ddlPropertyName.SelectedValue;
             if (PropertyVale != "0")
             {
                 string Ac          = chbAC.Checked ? "AC" : "Non AC";
                 string Ventilation = chbVentilation.Checked ? "Ventilation" : "No Ventilation";
                 string Washroom    = chbWashroom.Checked ? "Washroom Attached" : "Washroom Common";
                 string LargeRoom   = chbLargeRoom.Checked ? "Large Room" : "Medium Room";
                 string Balcony     = chbBalcony.Checked ? "Balcony" : "No Balcony";
                 string CornerRoom  = chbCornerRoom.Checked ? "Corner Room" : "No Corner Room";
                 string mobile      = Session["s_MobileNo"].ToString();
                 uc.AddLeads(mobile, PropertyName, PropertyVale, txtName.Text, txtMobileNo.Text, txtParentName.Text, txtParentMobile.Text, txtAmountRecieved.Text, ddlGender.SelectedItem.Text, txtRentAmount.Text, ddlRoomtypepreferred.SelectedItem.Text, Ac, Ventilation, Washroom, LargeRoom, Balcony, CornerRoom, ddlStatus.SelectedItem.Text, txtComments.Text);
                 string textmsg = "Leads Added Successfully !";
                 ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpopsuccess('" + textmsg + "')</script>", false);
                 txtName.Text                       = string.Empty;
                 txtMobileNo.Text                   = string.Empty;
                 txtParentName.Text                 = string.Empty;
                 txtAmountRecieved.Text             = string.Empty;
                 ddlGender.SelectedIndex            = 0;
                 txtRentAmount.Text                 = string.Empty;
                 txtParentMobile.Text               = string.Empty;
                 ddlRoomtypepreferred.SelectedIndex = 0;
                 ddlStatus.SelectedIndex            = 0;
                 chbAC.Checked                      = false;
                 chbVentilation.Checked             = false;
                 chbLargeRoom.Checked               = false;
                 chbBalcony.Checked                 = false;
                 chbCornerRoom.Checked              = false;
             }
             else
             {
                 string errormsg = "Please Select property name";
                 ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + errormsg + "')</script>", false);
             }
         }
         else
         {
             string text = "Please Enter Name ";
             ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false);
         }
     }
     catch (Exception ex)
     {
         string text = ex.Message.ToString();
         ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false);
     }
 }