Tag Archives:

ASP.NET 4 allows developers to customize Client Id which gets generated by ASP.NET.
ClientIDMode = “AutoID”

  • AutoID Using this mode will generate the IDs as it has in earlier versions of ASP.NET.
  • Static Static mode outputs the same ID in HTML as specified in ASP.NET source.
  • Predictable Predictable mode concatenates the ID of parent control with the bound value supplied by assigning ClientIDRowSuffix property.
    ClientIDMode=”Predictable” ClientIDRowSuffix=”Name”
  • Inherit Inherit is the default mode for all controls. Assigning this mode a control will use the same setting as its parent control.

But anyway, it would be better to use ASP.MVC instead of ASP.Forms to hold under contorl not just ID’s but whole page.