TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Nkululeko Mazibuko
NA
15
26.4k
How to upload multiple images using a Telerik RadUpload
Oct 8 2011 11:15 AM
I have the following code in my asp.net form.
protected void RadButton1_Click(object sender, EventArgs e)
{
try
{
Guid eventid = Guid.Parse(Request.QueryString["id"]);
foreach (UploadedFile file in RadUpload1.UploadedFiles)
{
Guid pId = Guid.NewGuid();
byte[] bytes = new byte[file.ContentLength];
file.InputStream.Read(bytes, 0, file.ContentLength);
csPicture objpics = new csPicture();
objpics.PicId = pId;
objpics.PicDescription = file.GetNameWithoutExtension();
objpics.Picture = bytes;
objpics.EventId = eventid;
objpics.Add_Image();
}
}
catch (Exception ex)
{
lblerror.Text = ex.Message;
}
}
when I trace trough the program it doesn't even go inside the foreach...does anyone know any alternative to this or any other way I can use to upload multiple images at the same time.
Regards!
Reply
Answers (
1
)
How to retrieve values from ListView ?
Passing variables between wpf pages