P/Invoke能够在asp.net中使用(2) 40 public static extern int MessageBox(int h, string m,41 string c, int type);4243 [DllImport("user32.dll", CharSet=CharSet.Ansi)]44 public static extern Boolean MessageBeep(UInt32 beepType);4546 [DllImport("Kernel32.dll", SetLastError=true)]47 static extern Boolean Beep(UInt32 frequency, UInt32 duration);484950 Web 窗体设计器生成的代码#region Web 窗体设计器生成的代码51 override protected void OnInit(EventArgs e)52 {53 //54 // CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。55 //56 InitializeComponent();57 base.OnInit(e);58 }59 60 /**//// <summary>61 /// 设计器支持所需的方法 - 不要使用代码编辑器修改62 /// 此方法的内容。63 /// </summary>64 private void InitializeComponent()65 { 66 this.Button1.Click += new System.EventHandler(this.Button1_Click);67 this.Load += new System.EventHandler(this.Page_Load);