By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,771 Members | 1,669 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,771 IT Pros & Developers. It's quick & easy.

Set HtmlControl Within HtmlAnchor

P: n/a
I'm dynamically generating HtmlImages that I want to wrap with an
HtmlAnchor.

How do I do this?

JJ
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"Jeff Johnson" <je**********@hotmail.com> wrote in message
news:Oq**************@TK2MSFTNGP10.phx.gbl...
I'm dynamically generating HtmlImages that I want to wrap with an
HtmlAnchor.

How do I do this?

JJ

Nov 16 '05 #2

P: n/a
Right on! You rock!

Thanks dude,

JJ

"Ben Lucas" <be*@nospam.solien.nospam.com> wrote in message
news:tc********************@comcast.com...
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

"Jeff Johnson" <je**********@hotmail.com> wrote in message
news:Oq**************@TK2MSFTNGP10.phx.gbl...
I'm dynamically generating HtmlImages that I want to wrap with an
HtmlAnchor.

How do I do this?

JJ


Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.