Unique sequential attribute value in Web User Control when dropped on form in VS.NET

Discussion in 'ASP .Net' started by James J. Foster, Aug 7, 2003.

  1. Is there a way to instruct visual studio to give each instance of a user
    control a unique attribute value, by specifying a pattern for an incremental
    index? Similar to how visual studio automatically determines a unique ID
    value.

    For example, if my control has an attribute panelnumber, as in:

    <my:panel panelnumber="pan1" runat="server" id="panel1" />

    I want to establish a pattern placeholder, eg "pan##", whereby VS.NET will
    replace the ## with a unique number: pan1, pan2, pan3, etc.

    Possible?

    James
     
    James J. Foster, Aug 7, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. A Traveler

    Init Control when dropped on form??

    A Traveler, Oct 23, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    659
    WALDO
    Oct 25, 2004
  2. Reny J Joseph Thuthikattu
    Replies:
    1
    Views:
    837
    =?Utf-8?B?UHJha2FzaC5ORVQ=?=
    Dec 30, 2004
  3. ABC
    Replies:
    1
    Views:
    2,852
    Larry
    Oct 4, 2005
  4. ABC
    Replies:
    0
    Views:
    627
  5. Replies:
    1
    Views:
    4,948
    Joe Kesselman
    Aug 2, 2006
  6. Replies:
    8
    Views:
    785
  7. A Traveler

    Init Control when dropped on form??

    A Traveler, Oct 23, 2004, in forum: ASP .Net Building Controls
    Replies:
    3
    Views:
    266
    A Traveler
    Oct 25, 2004
  8. ABC
    Replies:
    0
    Views:
    356
Loading...