I suggest you ...

ASP.NET: Add ClientID.None

Add one more option for ClientIDMode enumeration in ASP.NET.

It's often the case we use ID of a control only in order to reference it from Code-Behind and we don't need the id attribute to be rendered on client-side. It only creates unnecessary garbage data to be transferred to client. ClientIDMode.Static can decrees the amount of data being transferred, but it's still > 0 and one must be extremly careful not to generate duplicate IDs.

ClientIDMode.None would prevent ID from being rendered to resulting HTML markup. The CliendID property would return null (or empty string). Supporting controls will not render the ID attribute in this case at all.

58 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Rabi SatterRabi Satter shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base