Hi every one,pls am trying to copy the content of my fileupload unto an hidden text box so that users will not have to copy it manually,but it just copies the file name wit exception of the path.I need the path name but in IE9,firefox,opera all i get is the file name without file path pls somebody help.
this is my code
protected void Button1_Click(object sender, EventArgs e)
{
string filepath = FileUpload1.PostedFile.FileName;
hiddentext.text = filepath;
}
have also tried this
protected void Button1_Click(object sender, EventArgs e)
{
string s1 = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName);
string s2 = string.Copy(s1);
hiddentext.text = s2;
}
It gives same answer pls help.
Thanks in advance