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
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.
Chumley Walr...
Member
621 Points
234 Posts
Private Page_Load Method error "has multiple definitions with idential signatures'
Apr 06, 2012 09:03 PM|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
Inherits System.Web.UI.Page
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.
end if
End Sub
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
else
team = ddTeamCOM.SelectedValue
end if
agreed = Request.Form("ddAgreed")
agreed = ddAgreed.SelectedValue
dim posmain,poss,posss
posmain = Request.Form("ddPos")
posmain = ddPos.SelectedValue
poss = Request.Form("ddPos2")
poss = ddPos2.SelectedValue
posss = Request.Form("ddPos3")
posss = ddPos3.SelectedValue
AddNewUser(txtUserName.Text.Trim(),txtFirst.Text.Trim(),txtLast.Text.Trim(),txtCity.Text.Trim(),posmain,poss,posss
Mauro_net
Contributor
2114 Points
402 Posts
Re: Private Page_Load Method error "has multiple definitions with idential signatures'
Apr 07, 2012 02:56 AM|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
Chumley Walr...
Member
621 Points
234 Posts
Re: Private Page_Load Method error "has multiple definitions with idential signatures'
Apr 07, 2012 06:33 PM|LINK
No, the class designations all look ok:
aspx page:
<%@ Page Language="vb" AutoEventWireup="true" CodeFile="Register.aspx.vb" Debug="true" Inherits="Register"%>
code behind Register.aspx.vb class tag:
Public Class Register
Inherits System.Web.UI.Page
Mauro_net
Contributor
2114 Points
402 Posts
Re: Private Page_Load Method error "has multiple definitions with idential signatures'
Apr 07, 2012 08:05 PM|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
Chumley Walr...
Member
621 Points
234 Posts
Re: Private Page_Load Method error "has multiple definitions with idential signatures'
Apr 07, 2012 08:35 PM|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.
???????
Mauro_net
Contributor
2114 Points
402 Posts
Re: Private Page_Load Method error "has multiple definitions with idential signatures'
Apr 07, 2012 08:40 PM|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?
duwke
Member
2 Points
1 Post
Re: Private Page_Load Method error "has multiple definitions with idential signatures'
May 11, 2012 07:52 PM|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?