private void BindDataWhenEdit()
    {
        string sAction = ConvertData.ConvertToString(Request.QueryString[Constants.ACTION]);
        try
        {
            if (sAction == Constants.ACTION_EDIT)
            {
                int nID = ConvertData.ConvertToInt(Request.QueryString[Constants.ACTION_ID]);
                if (nID > 0)
                {
                    ProductFile obj = new ProductFile();
                    obj.LoadById(nID);

                    txtFileName.Text = ConvertData.ConvertToString(obj.Data.FileName);

                    if (obj.Data.Url != "")
                    {
                        div_file.Visible = true;
                        lnkFileName.Text = ConvertData.ConvertToString(obj.Data.Url);
                    }
                    //lnkFileName.NavigateUrl = ConvertData.ConvertToString(obj.Data.Url);

                }
            }
        }
        catch
        {
            string sLink = Constants.ROOT + Pages.BackEnds.ADMIN + "?" + Constants.PAGE + "=" + Pages.BackEnds.STR_PRODUCTFILE;
            Response.Redirect(sLink);
        }
    }
 private eProductFile ProductFileEntity()
 {
     eProductFile entityProductFile = new eProductFile();
     int nItemID = ConvertData.ConvertToInt(Request.QueryString[Constants.ACTION_ID]);
     string sQueery = ConvertData.ConvertToString(Request.QueryString[Constants.ACTION]);
     if (nItemID > 0 && sQueery == Constants.ACTION_EDIT)
     {
         ProductFile obj = new ProductFile();
         obj.LoadById(nItemID);
         entityProductFile = obj.Data;
     }
     return entityProductFile;
 }