Click here to Skip to main content
15,882,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how to pass one page fileuploadbox filename to another page in asp.net?
Posted

1 solution

IN Upload Button Click
C#
string strFilename = Path.GetFileName(FileUpload1.FileName);
label1.text=strFilename;
Session["filename"]=label1.text.ToString();


using session to pass the filename in another page:
another page:


C#
pageload()
string a=Session["filename"].ToString();
Label2.Text=a;
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900