protected void btnQuiryReply_Click(object sender, ImageClickEventArgs e)
        {
            ImageButton btndetails = sender as ImageButton;
            GridViewRow gvrow = (GridViewRow)btndetails.NamingContainer;
            string sID = gvQuiry.DataKeys[gvrow.RowIndex].Value.ToString();

            ServeAtDoorstepService objService = new ServeAtDoorstepService();
            DataTable dtQ = objService.GetInquiryById(Convert.ToInt32(sID));

            if (dtQ.Rows.Count > 0)
            {
                hdnCategoryId.Value = dtQ.Rows[0]["CategoryId"].ToString();
                hdnCustomerId.Value = dtQ.Rows[0]["CustomerId"].ToString();
                hdnQuoteId.Value = dtQ.Rows[0]["InquiryID"].ToString();
                //hdnVendorId.Value = dtQ.Rows[0]["VendorID"].ToString();
                lblMsgTitle.Text = dtQ.Rows[0]["InquiryTitle"].ToString();
                lblMsgDesc.Text = dtQ.Rows[0]["Description"].ToString();
                lblMsgDate.Text = dtQ.Rows[0]["CreatedOn"].ToString();
                lblVendorName.Text = dtQ.Rows[0]["CustomerName"].ToString();
                lblCategory.Text = dtQ.Rows[0]["CategoryName"].ToString();

                spnInquiryDet.InnerHtml = @"<div style='float: left; display: block; width: 100%;height:150px;padding-left:25px;'>
                            <table>
                                <tr>
                                    <td>
                                        <div>
                                            <img src='" + dtQ.Rows[0]["CustomerImagePath"].ToString() + "' width='100' height='100' />" +
                                        "</div>" +
                                    "</td>" +
                                    "<td>" +
                                        "<div style='margin-left: 25px;font-family:Calibri;font-size:16px;height:25px;'>" + dtQ.Rows[0]["InquiryTitle"].ToString() + "</div>" +
                                        "<div style='margin-left: 25px;font-family:Calibri;font-size:14px;height:25px;'>By " + dtQ.Rows[0]["CustomerName"].ToString() + "</div>" +
                                        "<div style='margin-left: 25px;font-family:Calibri;font-size:12px;height:25px;'>Category - " + dtQ.Rows[0]["CategoryName"].ToString() + "</div>" +
                                        "<div style='margin-left: 25px;font-family:Calibri;font-size:13px;height:25px;'>" + dtQ.Rows[0]["Description"].ToString() + "</div>" +
                                    "</td>" +
                                "</tr>" +
                            "</table>" +
                        "</div>";
            }

            //this.ModalPopupViewMessage.Show();
            txtInquirySubject.Text = "Re: " + dtQ.Rows[0]["InquiryTitle"].ToString();
            this.modpopInquiryReply.Show();
        }
        void LoadInquiry(int intQuiryID)
        {
            string strCusImagePath = "";

            ServeAtDoorstepService objService = new ServeAtDoorstepService();
            DataTable dtQuiry = objService.GetInquiryById(intQuiryID);
            if (dtQuiry.Rows.Count > 0)
            {
                lblTitle.Text = dtQuiry.Rows[0]["InquiryTitle"].ToString();
                lblDesc.Text = dtQuiry.Rows[0]["Description"].ToString();
                lblCatgory.Text = dtQuiry.Rows[0]["CategoryName"].ToString();
                strImagePath = dtQuiry.Rows[0]["ImagePath"].ToString().Split(':');
                strCusImagePath = dtQuiry.Rows[0]["CustomerImagePath"].ToString();
                strVideoPath = dtQuiry.Rows[0]["VideoPath"].ToString();
                lblAddress.Text = dtQuiry.Rows[0]["Address"].ToString() + " " + dtQuiry.Rows[0]["StreetName"].ToString();
                lblCustomerName.Text = dtQuiry.Rows[0]["CustomerName"].ToString();
                lblCity.Text = dtQuiry.Rows[0]["CustomerCity"].ToString();
                lblState.Text = dtQuiry.Rows[0]["CustomerState"].ToString() + " " + dtQuiry.Rows[0]["ZipCode"].ToString();
                strCreatedOn = dtQuiry.Rows[0]["CreatedOn"].ToString();
            }

            spnCusImage.InnerHtml = "<a class='example-image-link' href='" + strCusImagePath + "' data-lightbox='example-1'" +
                                    "title='Or press the right arrow on your keyboard.'>" +
                                    "<img class='example-image' src='" + strCusImagePath + "' alt='Plants: image 2 0f 4 thumb' width='150' height='150' /></a>";

            lblPostedOn.Text = strCreatedOn;
            string strDivQImg = "";
            string strJSImg = "<div id='sliderFrame'><div id='slider'>";

            for (int i = 0; i < strImagePath.Length; i++)
            {
                strDivQImg += "<a class='example-image-link' href='"+strImagePath[i]+"' data-lightbox='example-set'"+
                                    "title='Or press the right arrow on your keyboard.'>"+
                                    "<img class='example-image' src='"+strImagePath[i]+"' alt='Plants: image 2 0f 4 thumb' width='100' height='100' /></a>";
                strJSImg += "<img src='" + strImagePath[i] + "' />";
            }
            strJSImg += "</DIV></DIV>";
            //spnImgSlide.InnerHtml = strJSImg;
            divQuiryImag.InnerHtml = strDivQImg;
            spnVideo.InnerHtml = BindUrl(strVideoPath);
        }