protected void gvVendorMessage_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "VIEW")
            {
                int index = Convert.ToInt32(e.CommandArgument);
                string S= gvVendorMessage.DataKeys[index].Value.ToString();

                ServeAtDoorstepService objService = new ServeAtDoorstepService();
                DataTable dtMsg = objService.SelectVenMessageById(Convert.ToInt32(S));

                if (dtMsg.Rows.Count > 0)
                {
                    for (int i = 0; i < dtMsg.Rows.Count; i++)
                    {
                        //lblMsgTitle.Text = dtMsg.Rows[i]["MessageTitle"].ToString();
                        //lblMsgDesc.Text = dtMsg.Rows[i]["Description"].ToString();
                        //lblMsgDate.Text = dtMsg.Rows[i]["CreatedOn"].ToString();
                        //lblCustomerName.Text = dtMsg.Rows[i]["CustomerName"].ToString();
                        //lblCategory.Text = dtMsg.Rows[i]["CategoryName"].ToString();
                    }
                }

                //pupMessage.ShowPopupWindow();
            }
        }
        protected void lnbtnResMsgView_Click(object sender, EventArgs e)
        {
            LinkButton btndetails = sender as LinkButton;
            GridViewRow gvrow = (GridViewRow)btndetails.NamingContainer;
            string sID = gvRespondMsg.DataKeys[gvrow.RowIndex].Value.ToString();

            ServeAtDoorstepService objService = new ServeAtDoorstepService();
            DataTable dtQ = objService.SelectVenMessageById(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]["QuiryId"].ToString();
                hdnVendorId.Value = dtQ.Rows[0]["VendorID"].ToString();
                lblMsgTitle.Text = dtQ.Rows[0]["MessageTitle"].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();
            }

            this.ModalPopupViewMessage.Show();
        }