473,406 Members | 2,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Set HtmlControl Within HtmlAnchor

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

How do I do this?

JJ
Nov 16 '05 #1
2 3527
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Hutch | last post by:
I am looking for some thoughts on this. I have successfully gotten the HTMLControl to work using C#, and it is displaying HTML and receiving messages nicely. Unfortunately, I am not able to...
5
by: Tim Mulholland | last post by:
If i have an HtmlControl for a table row such as: <tr id="trMyRow" runat="server">...</tr> is there any way to set this to be invisible by default through the HTML code, without having to go...
3
by: Leigh Webber | last post by:
I have an HTMLAnchor control on my aspx page. When it's not inside a repeater, it works fine. When I put it inside a repeater control, the handler never gets fired. I have a handler for the...
0
by: Jimmy | last post by:
Hi, I have a userobject with an htmlcontrol tb1 and server control tb1. When I try to refer to those controls from my webform only the asp control works. The question is how to refer to the html...
4
by: michael.schwarz | last post by:
Hello, is it possible to get a HtmlControl from a string including the HTML code in .NET 2.0? I was using the TemplateControl.ParseControl method in .NET 1.1, but this is not working in the new...
1
by: VB Programmer | last post by:
With HTML, how do I get the value of a textbox in an ItemTemplate column within a datagrid? Simple shopping cart. For each row: 1 column is a textbox where they can enter the quantity. 1...
2
by: Gabe Garza | last post by:
Is there a way to simulate clicking a HtmlAnchor in .NET Code?
1
by: CharlesA | last post by:
Hi folks I want to add a <ul> list with some <li> items in .net code behind on the fly I was under the impression that you could instantiate any HTML control by using the HTMLControl class...
5
by: zino | last post by:
my asp.net page need to display links (<a></a>) as tabs. I create a class that inherits from HtmlAnchor as: Public Class Tab Inherits System.Web.UI.HtmlControls.HtmlAnchor '(inheriting from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.