{"id":297,"date":"2021-01-24T18:36:00","date_gmt":"2021-01-24T18:36:00","guid":{"rendered":"https:\/\/wshop.fi\/eng\/?p=297"},"modified":"2021-03-24T19:12:48","modified_gmt":"2021-03-24T19:12:48","slug":"net-vb-c-control-naming-conventions","status":"publish","type":"post","link":"https:\/\/wshop.fi\/eng\/net-vb-c-control-naming-conventions\/","title":{"rendered":"Control Naming Conventions for ASP.NET VB C#"},"content":{"rendered":"\n<p>These\u00a0<strong>control naming conventions<\/strong>\u00a0may help provide some organization. Visual Studio sets Name properties to defaults for controls, like Label2. Using these conventions it would be something like\u00a0<strong>lbl<\/strong>Name.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ASP.NET Control Naming Conventions<\/h2>\n\n\n\n<p>ASP.NET Control Naming Conventions are prefixed to the name, such as,\u00a0<strong>lbl<\/strong>Name or\u00a0<strong>rpt<\/strong>Employee.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Control Naming Conventions List<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Naming Convention  -  Control\n \n              btn  -  Button \n              cb   -  CheckBox \n              cbl  -  CheckBoxList \n              ddl  -  DropDownList \n              dtv  -  DetailsView\n              fmv  -  FormView\n              grdv -  GridView\n              hl   -  Hyperlink \n              img  -  Image \n              ib   -  ImageButton \n              lbl  -  Label \n              lbtn -  LinkButton \n              lb   -  ListBox \n              lit  -  Literal \n              mnu  -  Menu\n              pnl  -  Panel \n              ph   -  PlaceHolder \n              rb   -  RadioButton \n              rbl  -  RadioButtonList \n              rpt  -  Repeater\n              sql  -  SqlDataSource\n              txt  -  Textbox <\/code><\/pre>\n\n\n\n<p>If I\u2019ve left a naming convention out please feel free to comment. I will update the Naming Convention List later. Additionally, comment if you use something different.<\/p>\n\n\n\n<p>A Google search of \u201chungarian notation\u201d may provide more in depth information.<\/p>\n\n\n\n<p>Please share if you find the ASP.NET control naming convention list helpful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>These\u00a0control naming conventions\u00a0may help provide some organization. Visual Studio sets Name properties to defaults for controls, like Label2. Using these conventions it would be something like\u00a0lblName. ASP.NET Control Naming Conventions ASP.NET Control Naming Conventions are prefixed to the name, such as,\u00a0lblName or\u00a0rptEmployee. Control Naming Conventions List If I\u2019ve left a naming convention out please feel [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":192,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":{"0":"post-297","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-coding"},"_links":{"self":[{"href":"https:\/\/wshop.fi\/eng\/wp-json\/wp\/v2\/posts\/297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wshop.fi\/eng\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wshop.fi\/eng\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wshop.fi\/eng\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wshop.fi\/eng\/wp-json\/wp\/v2\/comments?post=297"}],"version-history":[{"count":1,"href":"https:\/\/wshop.fi\/eng\/wp-json\/wp\/v2\/posts\/297\/revisions"}],"predecessor-version":[{"id":298,"href":"https:\/\/wshop.fi\/eng\/wp-json\/wp\/v2\/posts\/297\/revisions\/298"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wshop.fi\/eng\/wp-json\/wp\/v2\/media\/192"}],"wp:attachment":[{"href":"https:\/\/wshop.fi\/eng\/wp-json\/wp\/v2\/media?parent=297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wshop.fi\/eng\/wp-json\/wp\/v2\/categories?post=297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wshop.fi\/eng\/wp-json\/wp\/v2\/tags?post=297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}