Click here to Skip to main content
15,887,344 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to store particular image in a variable in c# .how can i store and which data type i should use. i declare image as fallows

<asp:Image ID="Image1" runat="server" Height="72px" ImageUrl="images/image4.jpeg" />
i want to store Image1 in a variable to access that one in code behind
Posted

1 solution

The Image would be of type Bitmap. And it would be useless to you, unless you wrote a HTTP handler to serve it. Your browser can only see images via a URL.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900