ASP.NET 4 allows developers to customize Client Id which gets generated by ASP.NET

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: