Exemplo n.º 1
0
 private void LoadDataEdit()
 {
     try
     {
         OtherFunctions obj = new OtherFunctions();
         int            ID  = Globals.GetIntFromQueryString("ID");
         DataSet        ds  = obj.GetFileDownloadByID("FileDownload", ID);
         txtFileTitle.Text        = Convert.ToString(ds.Tables[0].Rows[0]["FileTitle"]);
         linkFileName.Text        = Convert.ToString(ds.Tables[0].Rows[0]["FileTitle"]);
         linkFileName.NavigateUrl = Globals.GetUploadsUrl() + "CommonFiles/" + Convert.ToString(ds.Tables[0].Rows[0]["FileName"]);
         linkFileName.Target      = "_blank";
         linkFileName.Attributes.Add("style", "text-decoration:underline;");
         Session["FileName"] = Convert.ToString(ds.Tables[0].Rows[0]["FileName"]);
     }
     catch { }
 }