Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

UI controls naming convention

$
0
0

I am very strict about naming convention.  I follow MSDN's guide when coding in C#. For example, I absolutely don't use Hungarian naming convention for my C# variables. 

But how about UI controls?  Is it a convention to use Hungarian notation for IDs of server controls? Disciplined coders please share your experiences.  If yes, we will have btnSubmit for a submit button, and then how do you name your button's click event handler?  btnSubmit_Click?  I don't like it because I think all method names should start with a capital letter.

I want to be consistent in my naming convention.  But it is hard. 


Viewing all articles
Browse latest Browse all 23244


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>