![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi! While trying to run my first web application using Microsost Visual Studio .net I came up with the following error: Method not found: Void System.EventHandler..ctor (System.Object, IntPtr). Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.MissingMethodException: Method not found: Void System.EventHandler..ctor(System.Object, IntPtr). Source Error: Line 32: // CODEGEN: This call is required by the ASP.NET Web Form Designer. Line 33: // Line 34: InitializeComponent(); Line 35: base.OnInit(e); Line 36: } The application is meant to do the following: CLick a buuton and a msg in a textbox appears (typical hello world scenario) the problem is I dont know what is wrong the code is attached below: |
|
private void buthead_Click(object sender, System.EventArgs e) { TextBox1.Text = "Hello, Web Forms!"; } } } PLEASE HELP THANK YOU IN ADVANCE |
#3
| |||
| |||
|
|
-----Original Message----- Hi! While trying to run my first web application using Microsost Visual Studio .net I came up with the following error: Method not found: Void System.EventHandler..ctor (System.Object, IntPtr). Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.MissingMethodException: Method not found: Void System.EventHandler..ctor(System.Object, IntPtr). Source Error: Line 32: // CODEGEN: This call is required by the ASP.NET Web Form Designer. Line 33: // Line 34: InitializeComponent(); Line 35: base.OnInit(e); Line 36: } The application is meant to do the following: CLick a buuton and a msg in a textbox appears (typical hello world scenario) the problem is I dont know what is wrong the code is attached below: using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; namespace HelloWorld { /// <summary /// Summary description for WebForm1. /// </summary public class WebForm1 : System.Web.UI.Page { protected System.Web.UI.WebControls.TextBox TextBox1; protected System.Web.UI.WebControls.Label Label1; protected System.Web.UI.WebControls.Button buthead; private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here } #region Web Form Designer generated code override protected void OnInit(EventArgs e) { // // CODEGEN: This call is required by the ASP.NET Web Form Designer. // InitializeComponent(); base.OnInit(e); } /// <summary /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary private void InitializeComponent() { this.buthead.Click += new System.EventHandler(this.buthead_Click); this.Load += new System.EventHandler(this.Page_Load); } #endregion private void buthead_Click(object sender, System.EventArgs e) { TextBox1.Text = "Hello, Web Forms!"; } } } PLEASE HELP THANK YOU IN ADVANCE . |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |