Display image. Simple question.

M

Miguel Dias Moura

Hello,

I created a page in ASP.Net / VB where i placed an image.

The image's file to use should be "images/imgN.gif", where N is the
value of the parameter Number passed to the page in the URL.

Can someone tell me how to do this?

Thank You,
Miguel
 
S

Steve C. Orr [MVP, MCSD]

MyImageControl.ImageURL = "images/img" +
Request.QueryString("ImageID").ToString + ".gif"
 
W

Weston Weems

Peice of cake... if you are using
System.Web.UI.Webcontrols.Image

Just set imagesrc in page_load event (or your databinding
methods if you have such a thing set up)and you are good
to go.

You can use <img runat="server" id="blah", and I am sure
you could also access from codebehind etc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top