写程序的时候突然忘了C#的控件命名的大小写的规范,去网上找了些资料,拷过来看看。
Standard Control

类 型 前 缀 示 例
Adrotator adrt adrtTopAd
BulletedList blst blstCity
Button btn btnSubmit
Calendar cal calMettingDates
CheckBox chk chkBlue
CheckBoxList chkl chklFavColors
DropDownList drop dropCountries
FileUpLoad fup fupImage
HiddenField hfld hfldName
HyperLink hlk hlkDetails
Image img imgAuntBetty
ImageButton ibtn ibtnSubmit
ImageMap imap imapSite
Label lbl lblResults
LinkButton lbtn lbtnSubmit
ListBox lst lstCountries
Literal ltl ltlTitle
Localize loc locChina
MultiView mvw mvwForm1
Panel pnl pnlForm2
PlaceHolder plh plhFormContents
RadioButton rad radFemale
RadioButtonList radl radlGender
SubStitution subs subsTime
Table tbl tblCountryCodes
TextBox txt txtFirstName
View vw vwCity
Wizard wiz wizRegister
Xml xml xmlBooks

Data Control

类 型 前 缀 示 例
AccessDataSource ads adsPubs
DataList dlst dlstTitles
DetailView dvw dvwTitles
FormView fvw fvwFonts
GridView gvw gvwCity
ObjectDataSource ods odsMenus
Repeater rpt rptQueryResults
ReportViewer rvw rvwRecord
SiteMapDataSource smds smdsSite
SqlDataSource sds sdsBooks
XmlDataSource xds xdsTitles

Validation Control

类 型 前 缀 示 例
CompareValidator valc valcValidAge
CustomValidator valx valxDBCheck
RangeValidator valg valgAge
RegularExpressionValidator vale valeEmail
RequiredFieldValidator valr valrFirstName
ValidationSummary vals valsFormErrors

Navigation Control

类 型 前 缀 示 例
Menu mnu mnuUser1
SiteMapPath smp smpSite1
TreeView trvw trvwMenu

Login Control

类 型 前 缀 示 例
ChangePassword cpwd cpwdUser1
CreateUserWizard cuw cuwLogin
Login log logCenter
LoginName logn lognUser
LoginStatus logs logsUser
LoginView logv logvUser
PasswordRecovery pwdr pwdrUser

WebParts Control

类 型 前 缀 示 例
AppearanceEditorPart paed paedPart1
BehaviorEditorPart pbed pbedPart2
CatalogZone zca zcatCity
ConnectionsZone zcon zconDataBase
DeclarativeCatalogPart pdca pdcaPart1
EditorZone zed zedNews
ImportCatalogPart pica picaPart
LayoutEditorPart pled pledNews
PageCatalogPart ppca ppcaMail
PropertyGridEditorPart ppge ppgeServer
ProxyWebPartManager mpwp mpwpWeb
WebPartManager mwp mwpSite1
WebPartZone zwp zwpSite2

 

補充:

  Control   type prefix Example  
  Animated   button ani aniMailBox  
  Button btn  
  Check   box chk chkReadOnly  
  ColorDialog clrdlg  
  Combo   box,   drop-down   list   box cbo cboEnglish  
  Communications   com comFax  
  ContextMenu ctxmnu  
  Control   (used   within   procedures   when   the   specific   type   is   unknown) ctr ctrCurrent  
  CrystalReportViewer crvw  
  Data dat datBiblio  
  Data   grid dgd dgdTitles  
  Data   list dbl dblPublisher  
  Data   repeater drp drpLocation  
  Data-bound   combo   box dbcbo dbcboLanguage  
  Data-bound   grid dbgrd dbgrdQueryResult  
  Data-bound   list   box dblst dblstJobType  
  Datetime   picker dtp dtpPublished  
  Directory   list   box dir dirSource  
  DomainUpDown dupd  
  Drive   list   box drv drvTarget  
  ErrorProvider err  
  File   list   box fil filSource  
  Flat   scroll   bar fsb fsbMove  
  FontDialog fntdlg  
  Form frm frmEntry  
  Frame fra fraLanguage  
  Gauge gau gauStatus  
  Graph gra graRevenue  
  Grid grd grdPrices  
  GroupBox grp  
  HelpProvider hlp  
  Hierarchical   flexgrid flex flexOrders  
  HScroll   bar hsb hsbVolume  
  Image img imgIcon  
  Image   combo imgcbo imgcboProduct  
  ImageList ils ilsAllIcons  
  Label lbl lblHelpMessage  
  Line lin linVertical  
  LinkLabel lnk  
  Listbox lst lstPolicyCodes  
  ListView lvw lvwHeadings  
  MAPI   message mpm mpmSentMessage  
  MAPI   session mps mpsSession  
  MCI mci mciVideo  
  Menu mnu mnuFileOpen  
  Month   view mvw mvwPeriod  
  MonthCalendar mcl  
  MS   Chart ch chSalesbyRegion  
  MS   Flex   grid msg msgClients  
  MS   Tab   mst mstFirst  
  NotifyIcon nti  
  NumericUpDown nupd  
  OLE   container ole oleWorksheet  
  OpenFileDialog ofdlg  
  PageSetUpDialog psdlg  
  Picture   box pic picVGA  
  Picture   clip clp clpToolbar  
  PrintDocument prndoc  
  PrintPreviewControl ppctl  
  PrintPreviewDialog ppdlg  
  ProgressBar prg prgLoadFile  
  RadioButton rbtn  
  Remote   Data rd rdTitles  
  RichTextBox rtf rtfReport  
  SaveFileDialog sfdlg  
  Shape shp shpCircle  
  Slider sld sldScale  
  Spin spn spnPages  
  Splitter spt  
  StatusBar sta staDateTime  
  SysInfo sys sysMonitor  
  TabContrl tab  
  TabStrip tab tabOptions  
  Text   box txt txtLastName  
  Timer tmr tmrAlarm  
  Toolbar tlb tlbActions  
  TrackBar trb  
  TreeView tre treOrganization  
  UpDown upd updDirection  
  VScroll   bar vsb vsbRate 

posted @ 2009-05-06 16:56 gecko 阅读(190) 评论(0) 编辑
在 ASP.NET 页面的寿命周期内,Page 对象会公开一些被频繁使用的标准事件。ASP.NET 页面框架在运行时,会自动连接到(连线)这些方法的相应代理实例。这样您就无须编写必要的“粘接代码”。以下列表按激发顺序提供运行时连线的代理实例:
• Page_Init:出现此事件期间,您可以初始化值或连接可能具有的任何事件处理程序。
• Page_Load:出现此事件期间,您可以执行一系列的操作来首次创建 ASP.NET 页面或响应由投递引起的客户端事件。在此事件之前,已还原页面和控件视图状态。使用 IsPostBack 页面属性检查是否为首次处理该页面。如果是首次处理,请执行数据绑定。此外,请读取并更新控件属性。
• Page_DataBind:在页面级别调用 DataBind 方法时,将引发 DataBind 事件。如果在单个控件上调用 DataBind,则它只激发它下面控件的 DataBind 事件。
• Page_PreRender:恰好在保存视图状态和呈现控件之前激发 PreRender 事件。您可以使用此事件在控件上执行所有最后时刻操作。
• Page_Unload:完成页面呈现之后,将激发 Page_Unload 事件。此事件是执行最终清理工作的合适位置。这包括清理打开的数据库连接、丢弃对象或关闭打开的文件等操作。
以下列表概括了非确定性事件。 • Page_Error:如果在页面处理过程中出现未处理的例外,则激发 Error 事件。错误事件为您提供了妥善处理错误的机会。
• Page_AbortTransaction:如果要指明交易是成功还是失败,交易事件非常有用。此事件通常用于购物车方案,其中此事件可以指示订购是成功还是失败。如果已终止交易,则激发此事件。
• Page_CommitTransaction:如果已成功提交交易,则激发此事件。
http://www.cnblogs.com/hide0511/archive/2006/08/30/490783.html
posted @ 2009-05-06 16:44 gecko 阅读(179) 评论(0) 编辑