Set HtmlControl Within HtmlAnchor

  • Thread starter Thread starter Jeff Johnson
  • Start date Start date
J

Jeff Johnson

I'm dynamically generating HtmlImages that I want to wrap with an
HtmlAnchor.

How do I do this?

JJ
 
Assuming the following
img = your new HtmlImage you just generated
anchor = your HtmlAnchor currently on the page.

anchor.Controls.Add(img);

Ben Lucas
Lead Developer
Solien Technology, Inc.
www.solien.com
 
Right on! You rock!

Thanks dude,

JJ

Ben Lucas said:
Assuming the following
img = your new HtmlImage you just generated
anchor = your HtmlAnchor currently on the page.

anchor.Controls.Add(img);

Ben Lucas
Lead Developer
Solien Technology, Inc.
www.solien.com
 

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

Back
Top