Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <asp:image runat="server" ID="img2" ImageUrl="<%$Resources: Resource, cs_logo %>" />
- <img id="img2" src="System.Drawing.Bitmap" style="border-width:0px;" />
- <asp:Image ImageUrl="<%$resources:Image1 %>" />
- Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
- Dim FinalBitmap As Bitmap
- Dim strRenderSource As String
- Dim msStream As New MemoryStream()
- strRenderSource = Request.Params("ImageName").ToString()
- ' Write your code here that gets the image from the app resources.
- FinalBitmap = New Bitmap(Me.Resources(strRenderSource))
- FinalBitmap.Save(msStream, ImageFormat.Png)
- Response.Clear()
- Response.ContentType = "image/png"
- msStream.WriteTo(Response.OutputStream)
- If Not IsNothing(FinalBitmap) Then FinalBitmap.Dispose()
- End Sub
- <asp:Image ImageUrl="http://localhost/GetImage.aspx?ImageName=Image1" />
- <img id="WelocmeICon" runat="server" alt="welcome icon"
- src="<%$resources:NmcResource,WelcomeIcon %>" />
Add Comment
Please, Sign In to add comment