Last post May 11, 2012 08:52 PM by duwke
Apr 06, 2012 10:03 PM|Chumley Walrus|LINK
'Private Sub Page_Load(sender As Object, e As System.EventArgs)' has multiple definitions with identical signatures
Imports System.Web.Security ' |||||| Required Class for Authentication
Imports System.Data ' |||||| DB Accessing Import
Imports System.Data.SqlClient ' |||||| SQL Server Import
Imports System.Configuration ' |||||| Required for Web.Config appSettings |||||
Public Class Register
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
if not IsPostBack then
' first time the page is loaded.
Private Sub cmdSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSubmit.Click
If Page.IsValid Then ' ||||| Meaning the Control Validation was successful!
''where we will take out the validateuewuser func check
'' check for incoming ddTeam dropdownlist var
dim team , agreed
team = Request.Form("ddTeamCOM")
if ddTeamCOM.SelectedValue = "" then
team = Request.Form("ddTeamREC")
team = ddTeamREC.SelectedValue
team = ddTeamCOM.SelectedValue
agreed = Request.Form("ddAgreed")
agreed = ddAgreed.SelectedValue
posmain = Request.Form("ddPos")
posmain = ddPos.SelectedValue
poss = Request.Form("ddPos2")
poss = ddPos2.SelectedValue
posss = Request.Form("ddPos3")
posss = ddPos3.SelectedValue
Apr 07, 2012 03:56 AM|Mauro_net|LINK
I am goingto make a wild guess.
You copied that page from another page.
Then renamed the page. Make sure the page class name (asp.net gives it and userscore public partial class _MyPage) is unique.
Make sure also that the page directive "Inherits="_MyPage" points to it and both pages have different inherited classes
Apr 07, 2012 07:33 PM|Chumley Walrus|LINK
No, the class designations all look ok:
<%@ Page Language="vb" AutoEventWireup="true" CodeFile="Register.aspx.vb" Debug="true" Inherits="Register"%>
code behind Register.aspx.vb class tag:
Public Class Register
Apr 07, 2012 09:05 PM|Mauro_net|LINK
are you sure your page_load method isn't declared anywere else? like in the aspx file itself? I insist because after googling for this for some time all i see is peopple having this issue had to delete a duplicated page load. What happens when you double
click the error? where does it point to?
Also, make sure class "register" isnt defined twice
Apr 07, 2012 09:35 PM|Chumley Walrus|LINK
What I have already posted is all the pertinent code for the page/classes. This error started happening after I added a few more dropdownlist objects to the collection of database insertion entries.
Apr 07, 2012 09:40 PM|Mauro_net|LINK
i saw we get our hand dirty. What happens when you remove the page load?
Can you delete the combos and the error dissapears?
May 11, 2012 08:52 PM|duwke|LINK
Likely you have another page with the same name in the website somewhere. Did you copy an existing page of the same name and forget to rename it?