Hi,
I am using Rad Upload control for uploading image.User can browse image by this.
Bt I dont want 'add' , 'delete' and 'remove' buttons below browse button which comes bydefault .user can upload only one image at a time.
How can i do this?..
I am saving the image which user has browsed..I want to allow all image type to browse.Now it only allows me to browse .jpeg images...
Here is my code...
<telerik:RadUpload |
ID="UploadFile" runat="server" |
Skin="Vista" |
MaxFileInputsCount="5" |
TargetFolder="~/ProfileImage" |
OverwriteExistingFiles="false" InitialFileInputsCount ="1" /> |
<asp:Button id="btnPreview" style="font-weight:bold;height:22px; width: 80px;" CssClass="btn" runat ="server" |
Text ="Submit" OnClick="btnPreview_Click" CausesValidation ="false" /> |
|
|
protected void btnPreview_Click(object sender, EventArgs e) |
{ |
foreach (UploadedFile f in UploadFile.UploadedFiles) |
{ |
string ffilepath = f.GetName(); |
ObjuserModelCs.proc_insert_UpdateLoginImage(Convert.ToInt32(Session["WebsiteUserId"].ToString()), filepath); |
previewField.ImageUrl = filepath; |
} |
} |
Waiting for reply!!!
Thanks.