-
Need Help - How to upload image to web site using Asp.net ?
I want to know how I can upload any images to web site.Is there any tag
in asp.net that allows me to upload an image? Is there any other way to do
that?
Thank you,
Geeta
-
Re: Need Help - How to upload image to web site using Asp.net ?
Hi Geeta,
"Geeta" <giit@usa.net> wrote in message news:3b1d2e6c$1@news.devx.com...
> I want to know how I can upload any images to web site.Is there any tag
> in asp.net that allows me to upload an image? Is there any other way to do
> that?
The HtmlInputFile control, which includes a built-in Browse button, lets you
upload a file from the client to a folder on the server. When the user
clicks the Browse button, a standard file selection window appears to help
the user select the file to upload. To use this control programmatically,
you must also include the attribute enctype="multipart/form-data" in the
form element of your Web page.
Constance Petersen, DevX newsgroup section leader
--
SoftMedia Artisans, Inc.
http://www.smartisans.com
Visual Basic.NET Internet Black Book
ISBN: 1-58880-078-4
-
HTML element and allows you to upload a file to the server
HtmlInputFile Server Control Declarative Syntax
<input type=file> HTML element and allows you to upload a file to the server.
Code:
<input
Type="File"
EnableViewState="False|True"
Id="string"
Visible="False|True"
OnDataBinding="OnDataBinding event handler"
OnDisposed="OnDisposed event handler"
OnInit="OnInit event handler"
OnLoad="OnLoad event handler"
OnPreRender="OnPreRender event handler"
OnUnload="OnUnload event handler"
runat="server"
/>
For More Details,
http://msdn2.microsoft.com/ru-ru/library/1s43z4wk.aspx
http://msdn2.microsoft.com/en-gb/lib...wk(VS.71).aspx
http://msdn.microsoft.com/library/de...classtopic.asp
Last edited by windows_mss; 01-30-2007 at 03:15 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|