Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Can I embedd FileUpload in a FormView?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bogdan - 22 Mar 2008 16:09 GMT
Hi,

I have a FormView where one of the items is a file name.  All items come
from a single data source.  I'd like to have the file name also displayed in
a FileUpload control on the same page.  Ideally I'd like to have the
FileUpload control embedded in a FormView so the file name appears only once
on the page.  Is this possible?  What are the alternatives?

Thanks,
Bogdan
Alexey Smirnov - 24 Mar 2008 11:20 GMT
> Hi,
>
[quoted text clipped - 6 lines]
> Thanks,
> Bogdan

The FileUpLoad control used to upload a file to the server. If you
have it already done ("one of the items is a file name") then you can
use a simple Label to show the name of the uploaded file. It's just an
alternative :-)
bogdan - 24 Mar 2008 16:57 GMT
Thanks for the reply.

I need users to be able to upload a file if needed.  So the label is not
sufficient in this case.
What I'd like to do is to embed FileUpload control in a form view (e.g. in
<EditItemTemplate></EditItemTemplate>) and bind a db column to it's
FileName.  Currently I have a label bound to the db column and then a
separate FileUpload control without any binding since I have no clue how to
set FileName property of the control - it is read-only.

Any other suggestions?

Thanks,
Bogdan

On Mar 22, 4:09 pm, "bogdan" <bog...@company.com> wrote:
> Hi,
>
[quoted text clipped - 8 lines]
> Thanks,
> Bogdan

The FileUpLoad control used to upload a file to the server. If you
have it already done ("one of the items is a file name") then you can
use a simple Label to show the name of the uploaded file. It's just an
alternative :-)

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.