DataTable dt = new DataTable();
dt = DemBiz.CRM.CrmCommon.SelectDocument(id);
txtDocname.Text = dt.Rows[0]["Document_Name"].ToString();
cmbCategory.SelectedValue = dt.Rows[0]["Category"].ToString();
cmbSubcategory.SelectedValue = dt.Rows[0]["SubCategory"].ToString();
string filename = dt.Rows[0]["Filename"].ToString();
string path = (Server.MapPath("~/CRMS/Documents/" + filename));
System.IO.FileInfo file = new System.IO.FileInfo(path);
liShowdoc.Text = filename;
txtRevision.Text = dt.Rows[0]["Revision"].ToString();
cmbStatus.SelectedValue = dt.Rows[0]["Document_Status"].ToString();
txtPublishdate.Text = Convert.ToDateTime(dt.Rows[0]["Publish_Date"].ToString()).ToShortDateString();
if (!Convert.IsDBNull(dt.Rows[0]["Expiration_Date"]))
txtExpdate.Text = Convert.IsDBNull(dt.Rows[0]["Expiration_Date"]) ? null : Convert.ToDateTime(dt.Rows[0]["Expiration_Date"].ToString()).ToShortDateString();
txtDescription.Text = dt.Rows[0]["Description"].ToString();
Actual The problem is when iam saving the document is being saved in the folder.so if i want the same document to be edited iam not geting the path following is my code to retrive the data