Click here to Skip to main content
15,904,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to retain value of the file upload control in asp.net without ajax
Posted

1 solution

Do you use the input control? I used this code in C#.

May be can help you:

C#
...
using System.Web.UI.HtmlControls;
...
HtmlInputFile htmlIF;
String _path;
htmlIF = (HtmlInputFile)this.FindControl("<the control's name>");
_path = htmlIF.htmlIF.Value;
...


Greetings!
 
Share this answer
 
v3
Comments
sainivip 1-Dec-11 4:25am    
But How to apply it

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