Hi I have a panel with a background image and I want to superimpose some text on this using codebehind, how do I do this. I've seen InnerHTML or InnerText and this seems to be what I need. What's the Panel attribute equivelent.
Dim l As New Literal
l.Text = "Hi"
Panel1.Controls.Add(l)
although I guess it depends what you are actually wanting to do which will determine if this is the best method. For example, if you are want to add a kind of copyright watermark over the Image, then it may be best to use GDI+ and actually append that text to the image (so that user's can't simply navigate directly to the image and bypass the Text you have written over the image in the Panel).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.