Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Can I embedd FileUpload in a FormView?

Reply
Thread Tools

Can I embedd FileUpload in a FormView?

 
 
bogdan
Guest
Posts: n/a
 
      03-22-2008
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


 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      03-24-2008
On Mar 22, 4:09*pm, "bogdan" <bog...@company.com> wrote:
> 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


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
 
Reply With Quote
 
 
 
 
bogdan
Guest
Posts: n/a
 
      03-24-2008
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

"Alexey Smirnov" <> wrote in message
news:e71cbcd2-62ca-4dfe-b52a-...
On Mar 22, 4:09 pm, "bogdan" <bog...@company.com> wrote:
> 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


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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to embedd WORD with JAVA applets pankajwadhwa Software 0 10-07-2006 02:16 PM
Extend/embedd python problem? Mile Blenton Python 0 02-16-2006 12:12 PM
How to embedd Word doc in XML Arthur XML 0 10-07-2004 12:33 PM
Can I embedd a windows form in a ASP.NET page ? =?Utf-8?B?U3VkZWVw?= ASP .Net 1 05-06-2004 11:29 PM
How To Embedd Ms Word object ? Anamika ASP .Net 1 10-23-2003 09:24 PM



Advertisments