Click here to Skip to main content
15,886,798 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Best SPF Practice Pin
jkirkerx26-Oct-12 10:52
professionaljkirkerx26-Oct-12 10:52 
QuestionStop Running Script Error Pin
ashu200124-Oct-12 23:12
ashu200124-Oct-12 23:12 
AnswerRe: Stop Running Script Error Pin
Vasudevan Deepak Kumar26-Oct-12 3:25
Vasudevan Deepak Kumar26-Oct-12 3:25 
QuestionTips on asp.net data updates and third party framework Pin
jumbojs23-Oct-12 19:20
jumbojs23-Oct-12 19:20 
AnswerRe: Tips on asp.net data updates and third party framework Pin
David Mujica24-Oct-12 3:22
David Mujica24-Oct-12 3:22 
Questionin Asp.net How to add templatefield and itemtemplate field dynamically in grid view please tell me...... Pin
ShreeGaneshPatil198822-Oct-12 20:59
ShreeGaneshPatil198822-Oct-12 20:59 
AnswerRe: in Asp.net How to add templatefield and itemtemplate field dynamically in grid view please tell me...... Pin
Sandeep Mewara23-Oct-12 4:13
mveSandeep Mewara23-Oct-12 4:13 
QuestionHow to pass binary image to image handler to display it in DataList? Pin
Chesnokov Yuriy22-Oct-12 6:08
professionalChesnokov Yuriy22-Oct-12 6:08 
I have a web page with a method called to display some images in the DataList control

C#
MyImage.cs
class MyImage
{
    string Name { get; set; }
    byte[] Jpeg { get; set; } 
}

MyImages.aspx.cs
pubic void DisplayMyImages(IEnumerable myImages)
{
    this.myImagesDataList.DataSource = myImages;
    this.myImagesDataList.DataBind();  
}
...
protected void myImagesDataList_ItemDataBound(object sender, DataListItemEventArgs e)
{
    if (e.Item.ItemType == ListItemType.Item ||
        e.Item.ItemType == ListItemType.AlternatingItem)
        {
            MyImage myImage = (MyImage)e.Item.DataItem;
            Image myImageImage = (Image)e.Item.FindControl("myImageImage");

            // How to pass myImage.Jpeg to ImageHandler? form here

            myImageImage.ImageUrl = "~/Handlers/ImageHandler.ashx";
        }
}


But how to pass jpeg image to ImageHandler if it is already extracted from the database and passed to DisplayMyImages() function?

Remarks:

I do not want to save them back to files and pass the paths in a query string to ImageHandler

Having a standard query string approach is not possible as I do not want to violate model view presenter approach
Чесноков

AnswerRe: How to pass binary image to image handler to display it in DataList? Pin
Richard Deeming22-Oct-12 6:46
mveRichard Deeming22-Oct-12 6:46 
GeneralRe: How to pass binary image to image handler to display it in DataList? Pin
Chesnokov Yuriy22-Oct-12 7:19
professionalChesnokov Yuriy22-Oct-12 7:19 
QuestionInsert,delete,update in datagridview in asp.net with webservice Pin
Member 1051082222-Oct-12 1:28
professionalMember 1051082222-Oct-12 1:28 
AnswerRe: Insert,delete,update in datagridview in asp.net with webservice Pin
vinay_sinha22-Oct-12 2:04
vinay_sinha22-Oct-12 2:04 
QuestionSessions Pin
Satbir422-Oct-12 1:01
Satbir422-Oct-12 1:01 
AnswerRe: Sessions Pin
vinay_sinha22-Oct-12 2:02
vinay_sinha22-Oct-12 2:02 
AnswerRe: Sessions Pin
Himanshu Yadav24-Oct-12 22:07
Himanshu Yadav24-Oct-12 22:07 
AnswerRe: Sessions Pin
Think On26-Oct-12 1:49
Think On26-Oct-12 1:49 
AnswerRe: Sessions Pin
Vasudevan Deepak Kumar26-Oct-12 3:26
Vasudevan Deepak Kumar26-Oct-12 3:26 
AnswerRe: Sessions Pin
Radhika Vyas28-Oct-12 23:01
Radhika Vyas28-Oct-12 23:01 
Questionhow to get onfocus OR onenter Textbox asp.net Pin
jojoba201121-Oct-12 23:19
jojoba201121-Oct-12 23:19 
SuggestionRe: how to get onfocus OR onenter Textbox asp.net Pin
Richard MacCutchan21-Oct-12 23:37
mveRichard MacCutchan21-Oct-12 23:37 
AnswerRe: how to get onfocus OR onenter Textbox asp.net Pin
mayur111221-Oct-12 23:52
mayur111221-Oct-12 23:52 
Questionhow to get onfocus OR onenter Textbox asp.net Pin
jojoba201121-Oct-12 23:18
jojoba201121-Oct-12 23:18 
AnswerRe: how to get onfocus OR onenter Textbox asp.net Pin
Sandeep Mewara23-Oct-12 4:10
mveSandeep Mewara23-Oct-12 4:10 
AnswerRe: how to get onfocus OR onenter Textbox asp.net Pin
Mayank_Gupta_24-Oct-12 22:32
professionalMayank_Gupta_24-Oct-12 22:32 
AnswerRe: how to get onfocus OR onenter Textbox asp.net Pin
Amir Jalilifard4-Nov-12 3:54
professionalAmir Jalilifard4-Nov-12 3:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.