I have the following image in my aspx page
\" >
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);