protected void btnSingleRooms_Click(object sender, EventArgs e)
    {
        try
        {
            if (txtRoomNo.Text.Length == 1)
            {
                string roomNo = "" + ddlFloorNo.SelectedItem.Value.ToString().Trim() + "" + txtRoomNo.Text.ToString().Trim().PadLeft(2, '0').Trim() + "";
                if (checkDuplicateRoomNO() == false)
                {
                    string       mobile          = Session["s_MobileNo"].ToString();
                    DropDownList ddlPropertyName = (DropDownList)Master.FindControl("ddlProperty");
                    string       PropertyName    = ddlPropertyName.SelectedItem.Text;
                    string       PropertyVale    = ddlPropertyName.SelectedItem.Value;
                    if (ddlPropertyName.SelectedItem.Value != "0")
                    {
                        string Ac          = chbAC.Checked ? "AC" : "";
                        string NonAC       = chbNonAC.Checked ? "Non AC" : "";
                        string Ventilation = chbVentilation.Checked ? "Ventilation" : "";
                        string Washroom    = chbWashroom.Checked ? "Washroom" : "";
                        string LargeRoom   = chbLargeRoom.Checked ? "Large Room" : "";
                        string Balcony     = chbBalcony.Checked ? "Balcony" : "";
                        string CornerRoom  = chbCornerRoom.Checked ? "Corner Room" : "";
                        string WiFi        = chbWifi.Checked ? "Wifi" : "";

                        uc.AddRooms(mobile, PropertyName, PropertyVale, roomNo, ddlFloorNo.SelectedItem.Text, ddlFloorNo.SelectedItem.Value, ddlBeds.SelectedItem.Text, ddlBeds.SelectedItem.Value, txtRent.Text, txtSecurityDeposit.Text, txtRemark.Text, Ac, NonAC, Ventilation, Washroom, LargeRoom, Balcony, CornerRoom, WiFi);
                        string textmsg = "Rooms " + roomNo + " inside " + PropertyName + " created  Successfully !";
                        ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpopsuccess('" + textmsg + "')</script>", false);
                        txtRoomNo.Text          = string.Empty;
                        txtRent.Text            = string.Empty;
                        txtSecurityDeposit.Text = string.Empty;

                        btnSingleRooms.Visible = true;
                        btnUpdateRooms.Visible = false;
                    }
                    else
                    {
                        string text = "Please select Property Name";
                        ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false);
                    }
                }
                else
                {
                    string text = "This Room No. " + roomNo + " Already Created Please Creat Another Room ;";
                    ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false);
                }
            }
            else
            {
                string text = "Enter only one Digit(Like: 102 =2) of Room No  ;";
                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);
        }
    }