Display Image using ashx Handler

前端 未结 3 583
[愿得一人]
[愿得一人] 2020-12-02 00:33

I have the following image in my aspx page


 \" 


         


        
3条回答
  •  时光说笑
    2020-12-02 00:56

    The ImageUrl only replaces the tilde (~) in the control markup.

    Try this instead:

    string imageUrl = "~/AvatarImageFetch.ashx?memberid=" + memberid.ToString();
    LargeImage.ImageUrl = Page.ResolveUrl(imageUrl);
    

提交回复
热议问题