dynamic naming

Results 1 to 2 of 2

Thread: dynamic naming

  1. #1
    Join Date
    Dec 1969

    Default dynamic naming

    Hi,<BR><BR>I need to refer to my objects dynamically. I have a 7 table cells (sunCell,<BR>monCell, tueCell....). I am looping through some data, checking its date<BR>and adding it to the correct cell. I want to be able to do something like:<BR><BR>string day;<BR>foreach ....<BR>{<BR> day = getShortDay(someDateTime);<BR> [day + "Cell"].Controls.Add(new LiteralControl("put some content in this<BR>cell.."));<BR>}<BR><BR>Is there anyway to do this?<BR><BR>thank you - Trevor<BR><BR>

  2. #2

    Default RE: dynamic naming

    Maybe with <BR>.FindControl("ID")<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts