为asp.net控件提供ID的提示 [英] tips to give ID for asp.net controls

查看:55
本文介绍了为asp.net控件提供ID的提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给我一​​些使用asp.net控件时提供ID的提示

例如,如果我们使用文本框,通常意味着给ID ="txt"
对于标签--- ID ="lbl"知道. .我需要用于所有控件.

请有人帮助我..

Give me some tips to give ID while using asp.net controls

for ex if we use textbox means usually give ID="txt"
for label---ID="lbl" know . . i need in that kind for all controls.

pls someone help me..

推荐答案

正如另一位响应者所说,不同的公司/项目具有不同的命名约定.但是有一些基本建议..
您可以查看以下链接以获取更多信息:

http://msdn.microsoft.com/en-us/library/xzf533w0% 28VS.71%29.aspx
http://www.visualize.uk.com/resources/asp-net-standards.asp
尝试使用谷歌搜索命名约定",您会发现很多文章.

希望对您有所帮助.
As the other responder said, different companies / projects have different naming conventions. But there are some basic recommendations..
You can check out the links below for more information:

http://msdn.microsoft.com/en-us/library/xzf533w0%28VS.71%29.aspx
http://www.visualize.uk.com/resources/asp-net-standards.asp
Try googling "Naming conventions" you will find a lot of articles.

Hope it helps.


不同的人使用不同的缩写形式.
在某些公司中,对于这些缩写也有公司规定.
例如.您可以跳过元音和双字母:)-标签将是lbl,button-btn等...
Different people use different style of such abbreviations.
In some companies there are also corporate rules for these abbreviations.
E.g. you can just skip vowels and double-letters :) - a label will be lbl, button - btn, etc...


这篇关于为asp.net控件提供ID的提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆