Tables and html

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using an asp table to provide a list of dynamic content for the user.
It's a custom control with some nice features like the ability to collapse a
panel, control the number of items displayed, etc.

Right now it displays links that were inserted into the table cell as

System.Web.UI.WebControls.HyperLink

The link will navigate them to a regular url like www.msdn.com or to one
that I wrote which takes an argument and looks up the html for that page
based upon the agrument (the html is in the database).

So far so good, I just add hyperLinks.

Now my boss wants me to add html content right in the table alongside the
links. Can anybody tell me how to do this? To be more specific, now I set
the navigateUrl property of my hyperlink and I add that to my cell that I've
added to my row. I didn't find anything like an 'html' or 'innerhtml'
property.

Can I get there from here?
 
Rik,

Without code it is hard to be sure that my statement is along the lines of
what you are looking for. It sounds like you are adding a Hyperlink to the
cells control collection. If this is the case, you can add a Literal or a
Label to the cells control collection after the Hyperlink and have that
display your HTML content.

Michael
 
Back
Top