473,769 Members | 6,337 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I keep getting this error. pl help

I get the following error. Ihave no idea why? Pl help
Server Error in '/WebApplication1 ' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name
'EventHander' could not be found (are you missing a using directive or
an assembly reference?)

Source Error:

Line 16:
Line 17: protected override void OnInit(EventArg s e){
Line 18: this.Load+= new EventHander(Web Form2_Load);
Line 19: this.PreRender +=new EventHander(Web Form2_Init);
Line 20: this.Init +=new EventHander(Web Form2_Render);
Source File: http://localhost/WebApplication1/WebForm2.aspx Line:
18

<%@ Page language="c#" Codebehind="Web Form2.aspx.cs"
AutoEventWireup ="false" Inherits="WebAp plication1.WebF orm2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<html>
<head><script runat=server>
protected void WebForm2_Load(O bject o, EventArgs e){
Response.Write( "Message from Load Event Handler <br>");
}
protected void WebForm2_Init(O bject o, EventArgs e){
Response.Write( "Message from Init Event Handler <br>");
}

protected void WebForm2_PreRen der(Object o,EventArgs e){
Response.Write( "Message from PreRender Event Handler <br>");
}

protected override void OnInit(EventArg s e){
this.Load+= new EventHander(Web Form2_Load);
this.PreRender +=new EventHander(Web Form2_Init);
this.Init +=new EventHander(Web Form2_Render);
base.OnInit(e);

}
</script>

<title>WebForm2 </title>
<meta name="GENERATOR " Content="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" Content="C#">
<meta name=vs_default ClientScript content="JavaSc ript">
<meta name=vs_targetS chema
content="http://schemas.microso ft.com/intellisense/ie5">
</head>
<body MS_POSITIONING= "GridLayout ">

<form id="Form1" method="post" runat="server">


</form>

</body>
</html>
Nov 18 '05 #1
3 1478
This is very odd indeed.
I'm wondering if its a studio bug or if you accidentally deleted all the
'l's in the word Handler? The key word is New Handler not new Hander which
is the reason for the compiler error. But it is likely not a delete error
because lines 18 thru 20 have the same error. Could you have replaced them
all by accident?

--
Regards,
Alvin Bruney
Got DotNet? Get it here
http://home.networkip.net/dotnet/tidbits/default.htm
"Franko" <ju*****@sympat ico.ca> wrote in message
news:ec******** *************** *@posting.googl e.com...
I get the following error. Ihave no idea why? Pl help
Server Error in '/WebApplication1 ' Application.
-------------------------------------------------------------------------- ------
Compilation Error
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name
'EventHander' could not be found (are you missing a using directive or
an assembly reference?)

Source Error:

Line 16:
Line 17: protected override void OnInit(EventArg s e){
Line 18: this.Load+= new EventHander(Web Form2_Load);
Line 19: this.PreRender +=new EventHander(Web Form2_Init);
Line 20: this.Init +=new EventHander(Web Form2_Render);
Source File: http://localhost/WebApplication1/WebForm2.aspx Line:
18

<%@ Page language="c#" Codebehind="Web Form2.aspx.cs"
AutoEventWireup ="false" Inherits="WebAp plication1.WebF orm2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<html>
<head><script runat=server>
protected void WebForm2_Load(O bject o, EventArgs e){
Response.Write( "Message from Load Event Handler <br>");
}
protected void WebForm2_Init(O bject o, EventArgs e){
Response.Write( "Message from Init Event Handler <br>");
}

protected void WebForm2_PreRen der(Object o,EventArgs e){
Response.Write( "Message from PreRender Event Handler <br>");
}

protected override void OnInit(EventArg s e){
this.Load+= new EventHander(Web Form2_Load);
this.PreRender +=new EventHander(Web Form2_Init);
this.Init +=new EventHander(Web Form2_Render);
base.OnInit(e);

}
</script>

<title>WebForm2 </title>
<meta name="GENERATOR " Content="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" Content="C#">
<meta name=vs_default ClientScript content="JavaSc ript">
<meta name=vs_targetS chema
content="http://schemas.microso ft.com/intellisense/ie5">
</head>
<body MS_POSITIONING= "GridLayout ">

<form id="Form1" method="post" runat="server">


</form>

</body>
</html>

Nov 18 '05 #2
>this.Load+= new EventHander(Web Form2_Load);
this.PreRend er +=new EventHander(Web Form2_Init);
this.Init +=new EventHander(Web Form2_Render);
I think Alvin hit this one. Notice that it says EventHander when it should
include an "l" as in

this.Load += new System.EventHan dler(this.Page_ Load);
"Franko" <ju*****@sympat ico.ca> wrote in message
news:ec******** *************** *@posting.googl e.com...I get the following error. Ihave no idea why? Pl help
Server Error in '/WebApplication1 ' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name
'EventHander' could not be found (are you missing a using directive or
an assembly reference?)

Source Error:

Line 16:
Line 17: protected override void OnInit(EventArg s e){
Line 18: this.Load+= new EventHander(Web Form2_Load);
Line 19: this.PreRender +=new EventHander(Web Form2_Init);
Line 20: this.Init +=new EventHander(Web Form2_Render);
Source File: http://localhost/WebApplication1/WebForm2.aspx Line:
18

<%@ Page language="c#" Codebehind="Web Form2.aspx.cs"
AutoEventWireup ="false" Inherits="WebAp plication1.WebF orm2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<html>
<head><script runat=server>
protected void WebForm2_Load(O bject o, EventArgs e){
Response.Write( "Message from Load Event Handler <br>");
}
protected void WebForm2_Init(O bject o, EventArgs e){
Response.Write( "Message from Init Event Handler <br>");
}

protected void WebForm2_PreRen der(Object o,EventArgs e){
Response.Write( "Message from PreRender Event Handler <br>");
}

protected override void OnInit(EventArg s e){
this.Load+= new EventHander(Web Form2_Load);
this.PreRender +=new EventHander(Web Form2_Init);
this.Init +=new EventHander(Web Form2_Render);
base.OnInit(e);

}
</script>

<title>WebForm2 </title>
<meta name="GENERATOR " Content="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" Content="C#">
<meta name=vs_default ClientScript content="JavaSc ript">
<meta name=vs_targetS chema
content="http://schemas.microso ft.com/intellisense/ie5">
</head>
<body MS_POSITIONING= "GridLayout ">

<form id="Form1" method="post" runat="server">


</form>

</body>
</html>


Nov 18 '05 #3
Thanks a million...

"Ken Cox [Microsoft MVP]" <BA************ @sympatico.ca> wrote in message news:<Om******* ******@TK2MSFTN GP11.phx.gbl>.. .
this.Load+= new EventHander(Web Form2_Load);
this.PreRend er +=new EventHander(Web Form2_Init);
this.Init +=new EventHander(Web Form2_Render);


I think Alvin hit this one. Notice that it says EventHander when it should
include an "l" as in

this.Load += new System.EventHan dler(this.Page_ Load);
"Franko" <ju*****@sympat ico.ca> wrote in message
news:ec******** *************** *@posting.googl e.com...
I get the following error. Ihave no idea why? Pl help
Server Error in '/WebApplication1 ' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name
'EventHander' could not be found (are you missing a using directive or
an assembly reference?)

Source Error:

Line 16:
Line 17: protected override void OnInit(EventArg s e){
Line 18: this.Load+= new EventHander(Web Form2_Load);
Line 19: this.PreRender +=new EventHander(Web Form2_Init);
Line 20: this.Init +=new EventHander(Web Form2_Render);
Source File: http://localhost/WebApplication1/WebForm2.aspx Line:
18

<%@ Page language="c#" Codebehind="Web Form2.aspx.cs"
AutoEventWireup ="false" Inherits="WebAp plication1.WebF orm2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<html>
<head><script runat=server>
protected void WebForm2_Load(O bject o, EventArgs e){
Response.Write( "Message from Load Event Handler <br>");
}
protected void WebForm2_Init(O bject o, EventArgs e){
Response.Write( "Message from Init Event Handler <br>");
}

protected void WebForm2_PreRen der(Object o,EventArgs e){
Response.Write( "Message from PreRender Event Handler <br>");
}

protected override void OnInit(EventArg s e){
this.Load+= new EventHander(Web Form2_Load);
this.PreRender +=new EventHander(Web Form2_Init);
this.Init +=new EventHander(Web Form2_Render);
base.OnInit(e);

}
</script>

<title>WebForm2 </title>
<meta name="GENERATOR " Content="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" Content="C#">
<meta name=vs_default ClientScript content="JavaSc ript">
<meta name=vs_targetS chema
content="http://schemas.microso ft.com/intellisense/ie5">
</head>
<body MS_POSITIONING= "GridLayout ">

<form id="Form1" method="post" runat="server">


</form>

</body>
</html>

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
6123
by: Jason | last post by:
hello, i am new to PHP, so go easy. I am using the examples in the book: PHP: Your Visual Blueprint For Creating Open Source, Server Side Content In the section where they talk about getting values from a form submission, the book says:
8
10253
by: Lisa | last post by:
I have a drop down that defaults to "select" after the page refreshes. How do I keep the selected value in the dropdown field... I've tried EVERYTHING and nothing works! :( <script LANGUAGE="JavaScript"> function getServer(form){ var cdoServerName = document.frmSoftware.cdoServerName.options.value;
1
1939
by: Vernon | last post by:
Hi anyone, This is my code. int num num = 0; for(int a=0; a<count; ++a){ if(current->transID==aNo) ++num; current = current->next;
4
2703
by: Chefry | last post by:
I'm trying to set up an off the shelf script and keep getting an error. My host set up the mysql on my site and I changed the variables I had to in the settings.php file but I keep getting the following errors Warning: mysql_pconnect(): Access denied for user: 'ODBC@localhost' (Using password: NO) in f:\wwwroot\professionalchef\Back\JobsOnline\mysql.php on line 121 Warning: mysql_pconnect(): Access denied for user: 'ODBC@localhost'...
2
2024
by: iainw | last post by:
HI All, 1st post here, i wonder if you can help. We are about to upload CMS t a windows server and keep getting 2 errors below. We need to go LIVE an it's delaying us. An error occured when updating the database. The likely reason is that write permissions are not set on th 'database' folder. Please remember that write and delete permissions are also required o the 'content' folder and its subfolders.
2
1911
by: WAYNEL | last post by:
Hi I am trying to re-write some of the example code that Agilent gives for VB to VB.Net. In .Net I keep getting the error 'cannot change the number of dimensions of an array'. I have paste the module I am having an issue with. Can anyone help!
8
6304
by: lawrence k | last post by:
I've installed Apache 1.3.36 on my Redhat EL 3 machine. Now I'm trying to install PHP 5.1.4. I can not get the ./configure command to work. I keep getting this error: configure: error: Invalid Apache directory - unable to find httpd.h under /usr/local/apache/include So then I run this command: find / -name httpd.h
0
1193
by: CAIBird | last post by:
hi, i've been developing a webservice on machine A and one WebMethod of this webservice will connect to SQL Server2000 on machine B using a connect string defined in Web.config as below: <add key="sqlDbConn.ConnectionString" value="workstation id="172.23.171.226";packet size=4096;integrated security=SSPI;data source=172.23.171.226;persist security info=False;initial catalog=RVLabeling_Joe" />
8
5865
by: illuzion | last post by:
ok I keep getting this error: Parse error: syntax error, unexpected T_VARIABLE in /home/illuzion/public_html/BAMF/contactus.php on line 38 and this error is possibly on other lines could someone please help me out with this it is for a contact form for a webpage that I am making for a class project but I decided to add in this contact form.... <?php
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9999
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.