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

  • Thread starter James J. Foster
  • Start date
J

James J. Foster

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top