Regarding this example http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=upload
Where is the code for the showimagecs.aspx page which handles displaying the image?
Where is the code for the showimagecs.aspx page which handles displaying the image?
4 Answers, 1 is accepted
0
Hi Gregg,
The code behind is in the same folder. You can also view it from the code viewer control. See the attached screenshot.
Sincerely yours,
Albert
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
The code behind is in the same folder. You can also view it from the code viewer control. See the attached screenshot.
Sincerely yours,
Albert
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Gregg
Top achievements
Rank 1
answered on 18 Jun 2009, 03:40 PM
Thanks! Was that there the whole time? I was expecting to see that file on one of the tabs. I never clicked on the drop down arrow to learn there are additional associated files in the drop down list. And special thanks for the quick reply.
0
Julia
Top achievements
Rank 1
answered on 24 Jun 2009, 08:33 AM
Hi Albert,
Clicking the "Image" which supposedly show the original size of uploaded image just shows garbage data.This happens in Firefox, but IE works as expected.
Is there any work-around for Firefox?
Thanks!
Clicking the "Image" which supposedly show the original size of uploaded image just shows garbage data.This happens in Firefox, but IE works as expected.
Is there any work-around for Firefox?
Thanks!
0
Hello Julia,
You need to modify the StreamOriginalDate method the following way:
I.e to set the content type for the response, IE gueses that it is a JPEG and that is why it is working. However, Firefox wants the content type to be explicitly set.
Sincerely yours,
Genady Sergeev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
You need to modify the StreamOriginalDate method the following way:
private void StreamOriginalImage(byte[] imageData) |
{ |
Response.Clear(); |
Response.ContentType = "image/jpeg"; |
Response.BinaryWrite(imageData); |
Response.End(); |
} |
I.e to set the content type for the response, IE gueses that it is a JPEG and that is why it is working. However, Firefox wants the content type to be explicitly set.
Sincerely yours,
Genady Sergeev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.