Generate unique control Id

The following code generates unique control Id in a page:

First, you get the number of controls in the page draft. Then, you format a string, used for control identifier in the page.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?