• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

File Upload Control - Defaulting a Value

I have the following in a GridView:

<asp:FileUpload id="ImageURLTB" BindingContainer="ImageURL" AlternateText="You cannot upload files" runat="server" />

I have the AutoGenerateEditButton="True" on the Gridview.  When I click the Edit button to edit a row, the file upload control is blank.  How can I default the current db value for that control?  For instance, I am storing the value something like this in the code behind:

DataConnection.UpdateParameters("ImageURL").DefaultValue = "images/Employees/" + ImageURLTB.FileName

So, when I edit an existing row, I want the file upload control to have the value images/Employees/joe.jpg already defined.  Does that make sense?

Thanks for any help that you may be able to offer...
0
goodmanro
Asked:
goodmanro
1 Solution
 
SammyCommented:
Unfortunately you can not set a preset value to the fileupload control.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now