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. Advertising

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:
    549
    WALDO
    Oct 25, 2004
  2. John
    Replies:
    1
    Views:
    968
    Bob Foster
    Oct 22, 2003
  3. JohnnyV

    Custom Control not dropped on web page

    JohnnyV, Feb 9, 2004, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    101
    JohnnyV
    Feb 11, 2004
  4. A Traveler

    Init Control when dropped on form??

    A Traveler, Oct 23, 2004, in forum: ASP .Net Building Controls
    Replies:
    3
    Views:
    199
    A Traveler
    Oct 25, 2004
  5. KCS

    How to tell if a web control can accept dropped controls

    KCS, Sep 22, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    110
Loading...

Share This Page