Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTMLFileInput Control

Status
Not open for further replies.

TimSchild

Programmer
Mar 21, 2002
3
AU
Is there a way to get the HTMLFileInput control to maintain the path in its text box when another control causes a post back? I have thought about using validator controls for all other controls on the form but this won't do as some of my validations are done by stored procedures in a database.
Is there a way I can set what is shown in the HTMLFileInput Controls text box programatically?

Thanking you in advance,

Tim
 
Hey Tim,

k, I have a theory:

Take the value of the fileinput control and store it in the viewstate. Postback the page, and have code in your load event check to see if there's a value in the viewstate for your fileinput control, and assign it. If there isn't a value, don't assign it.

hth

Jack
 
sorry, the point of my question is that the HTTMLFileInput control will not simply let me set its value. I have been told that this for security reasons.

Any other ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top