471,108 Members | 1,598 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,108 software developers and data experts.

How to add attachment file to a form

Hi All,
I want to know how i can add attachment file to form for a
particular user.Its like user fills his information on
form and he can add an attachment file if he wants.And
later when you click on the User.His information along
with the attachment should be displayed.

Nov 18 '05 #1
2 2261
You need to use an <input type='file'> control on your page, which allows an
upload. On the server, you can then call the PostedFile.SaveAs(...) method
on the HtmlFileInput control, and store the file. You can then log the file
name in your user database, which you can grab using the PostedFile.FileName
property of the control, and display this link to the user.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Zameer" <za******@hotmail.com> wrote in message
news:0c****************************@phx.gbl...
Hi All,
I want to know how i can add attachment file to form for a
particular user.Its like user fills his information on
form and he can add an attachment file if he wants.And
later when you click on the User.His information along
with the attachment should be displayed.

Nov 18 '05 #2

Thanks Chris...
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Wald | last post: by
1 post views Thread by a c s | last post: by
1 post views Thread by abracad | last post: by
4 posts views Thread by phatnugs420 | last post: by
9 posts views Thread by deepaks85 | last post: by
7 posts views Thread by rn5a | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.