473,406 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to fix Event 'Load' cannot be found error?

42
I have a form that can't use Page Events for some reason. I had to rename the class because the form was duplcated a while back.

.ASPX: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="New_Hire.aspx.vb" Inherits="SIM.Webform_New_Hire" %>

.ASPX.VB: Partial Public Class Webform_New_Hire

.ASPX.DESIGNER.VB: Partial Public Class Webform_New_Hire

I would think that is setup correctly but I must need to update another file or something. Any ideas?
Jan 19 '11 #1
2 10983
1. Delete the events.
2. At the top of the page in visual studio, you have two dropdowns one for controls other for events.Choose the control and choose the event. it creates the code for the event.
3. Now your compilation/runtime error vanishes.
Jan 21 '11 #2
No, you need a Inherits declaration into the class definition.
This would look like this.

Expand|Select|Wrap|Line Numbers
  1. Public Class AlertHandler
  2.     Inherits System.Web.UI.Page
  3.  
  4.     Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
  5.  
  6.     End Sub
  7. End Class
  8.  
Regards, René Funk
Sep 26 '16 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Matt | last post by:
I am migrating from NT 4.0 (IIS 4) to 2003 Server (IIS 6). Our Intranet has numerous applications that utilize the FileSystemObject (FSO) and each one is returning a "Path not found." error. These...
19
by: MLH | last post by:
I call the following Sub and Function in frmLaunch's OnOpen event code. I keep getting Property Not Found error for the AllowBypassKey setting. Failure point is line #30 in the Function (not the...
0
by: Moe Sizlak | last post by:
Hi There, I am trying to get the value from a listbox, I have a class in my code behind page and I have created a sub to try to capture the selected value of the listbox but it keeps giving me...
2
by: Chris Fink | last post by:
I encountered a very odd error this afternoon. A website that has been in production for quite some time suddenly came up with a page cannot be found on the main index.aspx page for the site. 5...
5
by: jiangyh | last post by:
hi there: I use following source to fire outlook express,but I have a file not found error. System.ComponentModel.Win32Exception: File not found ...
2
by: Keith | last post by:
I am trying to connect to a DB2 database using "iSeries Access ODBC Driver" from Crystal Reports. I am able to report on tables and queries but not stored procedures. I get the following error...
5
by: eholz1 | last post by:
Hello Newsgroup, I have "installed" pdo using "pecl install pdo" (it intalled version 1.0.3), I have added the line "extension=pdo.so" to my php.ini file, but when I try to use the PDO db ...
2
by: wizardRahl | last post by:
Hello, I'm trying to install ArcInfo 9.2 (GIS software) on an Ultra 40 running Solaris 10 (x86). I am also extremely new to the unix environment. When I get to the correct path and try to run the...
3
by: E11esar | last post by:
I have created a simple web site in IIS6 that has a folder structure as follows: GEMap/TestFolder/Test.html and the html file just contains a simple line of text. With this in IIS I then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.