Click to See Complete Forum and Search --> : file uploading


saquib189
08-12-2008, 05:50 AM
Hi :WAVE: , i have datalist in my page on that i show product images with the help of image field in my sql database that filter the images as per product selection.

<asp:Image ID="Image1" Width="100" Height="100" Runat="Server"

AlternateText='<%# "Picture of " & Eval("image") %>'

ImageUrl='<%# "images/" & Eval("image") & ".jpg" %>' />

my image field contains 1 to 20 no. in series, every pictures in my image folder i give the no. for filtering., so i want to make a page that user can upload their image (only one at a time) to my server that will store on my image folder. now the matter is that when the user select its uploaded file then it's original name change to the no. that comes after 20th no. i.e. it random wise change the name. automatically and when the user not uploading any file and click on submit button it validation display error that you have to upload the image file. i want that all it's done by asp.net not by ajax because i use componentArt and it's not work with asp.net ajax.

so please help me to solve this matter.

regards

saquib

Hack
08-12-2008, 07:28 AM
Does this (http://www.codeproject.com/KB/aspnet/simpleuploadimage.aspx) help?