AutoEventWireup ??????? ?? ???? ??? ???????

???? ?????? ???? ??????
???? ID: 814745 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
??? ?? ??????? ???? | ??? ?? ??????? ????

??????

?? ???? ????? ???? ??AutoEventWireup??????? ?? ???:
  • AutoEventWireup?? ????? ???? ?? ?? ???? ??? ??????? ?? ??? ??? ?? ?????? autowired ??? ?????? ??????? ???
  • ?? ??? ??????? ???AutoEventWireupTRUE ??, ?? ?? ??? ??? ??? ???? ?? ???? ??:
    • TRUE ?? ????? autowiring ?????? ???
    • FALSE ?? ????? autowiring ?????? ???? ???

???? ???????

Visual Studio .NET ??? ?? Visual Studio 2005 ???, ????? ????? ?????? ??????? ????? ???????????? ?? ????? ???? ?? ??? ????? ???? ??? ?? ?? ???????? ??????? ?????????? ??????? ???????, ?? ??? designer ???????? ??? ?? ??????? ??????? ?? ???? ????? ?????? ??????? ?? ????? ???? ?? ??? ????

???? Visual Basic .NET ??? ?? Visual Basic 2005 ???, designer ?? ?? ?? ????? ???? ??? ??????????????? ??????? ?????? ???? ?? declaration ??? ???????

????? ????? ??? illustrates??????? ??Visual Basic .NET ?? Visual Basic 2005 ??? ??????:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
????? C# .NET, ??? designer ????? ?????? ????? ?? ?? ?????????:
this.Load += new System.EventHandler(this.Page_Load);
ASP.NET ????? ????? ?? ????? ???? ?? ?? ???? ???????? ??????? ?? ?????? ???? ??AutoEventWireup????? ??????? ?? ????? ?????? ??????? ???????? ??? ?? ?????? ???? ?? ??? ???? ??? ??????? ????? ?? ??????? ??? ???AutoEventWireup?? ???????@ ?????directive TRUE ?? ??? ?? (?? ??? ?? ????????? ???? ?? ??????? ???? ??????? ??? TRUE), ASP.NET ????? ????? ????: ????? ????? ?????? ???? ????

?? ??? ??????,Page_Init, ??Page_Load????? ?????? ??????? ?????? ??? ?? ??? ???? asp.NET ????? ????? ?????? ????? ??? ??????????? ???????? ?? ??? ?????? ????? ?? ????????? ???

???????, ?? ????? ???? ?? drawbackAutoEventWireup????? ??????? ?? ???? ????? ?????? ??????? ???????? ??? ?? ?????? ???? ?? ??? ??????? ??, ?? ????? ?????? ??????? ????, ?????????????? ??? ???? ?????? ??? ?? ????? ???? ?? ?? ?? ????? ?????? ??????? ??? ?? ???? ????

????? Studio .NET ?? Visual Studio 2005 ???? ?? ??? ?? ???? ???? ?? ??? ?? ??? ??? Visual Studio .NET ?? Visual Studio 2005, ??? ??????? ?? ??? ??????AutoEventWireupFALSE ??? ??? ??, designer ????? ???????????? ???????? ?? ???? ????? ?????? ??????? ?? ??? ????? ?? ????? ???? ?? ??? ??? ?????? ????? ?? ????????? ??? ????????????, ?? ????? ?????? ??????? ?? ??? ????? ??? ????? ?? ?????

Conclusion

?? ???? ?????? ??? ?? ??? ????AutoEventWireupTRUE, Visual Studio .NET ?? Visual Studio 2005, ?? ??? ???????? ??? ??, ??????? ???? ?? ??? ???? ????? ?????? ??????? ??????? ?? ????? ???? ?? ??? ???? ?? ?? ??? ??? asp.NET ????? ????? ???????? ??? ?? ??? ????? ?????? ??????? ?? ???? ?? ???? ?????????????? ???? ?? ?? ??? ??? ?? ??? ????? ???? ?? ?? ?? ?? ????? ?????? ???? ?? ??? ?? ?? ???? ???? ?????, Microsoft ??????? ???? ?? ?? ????? ??? ????AutoEventWireupVisual Studio .NET ??? ??? ???? ??? FALSE ???? ?? ????

??????

???? ??????? ?? ???, ????? MSDN ??? ???? ?? ????:
ASP.NET ????? ???????? ????? ????
(vs.71) http://msdn2.Microsoft.com/en-us/library/59t350k3 .aspx
@ ?????
(vs.71) http://msdn2.Microsoft.com/en-us/library/ydy4x04a .aspx

???

???? ID: 814745 - ????? ???????: 05 ?????? 2010 - ??????: 2.0
???? ???? ???? ??:
  • Microsoft .NET Framework 1.1
  • Microsoft .NET Framework 1.0
  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio .NET 2003 Professional Edition
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Academic Edition
  • Microsoft Visual Studio .NET 2002 Professional Edition
  • Microsoft Visual Studio .NET 2002 Enterprise Architect
  • Microsoft Visual Studio .NET 2002 Enterprise Developer
  • Microsoft Visual Studio .NET 2002 Academic Edition
  • Microsoft .NET Framework 2.0
??????: 
kbvs2005swept kbvs2005applies kbdesigner kbhelp kbdocs kbonline kbinetdev kbenv kbevent kbctrl kbcontrol kbwebforms kbprogramming kbdocerr kbmt KB814745 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:814745

??????????? ???

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com