Type 'login' already defines a member called 'Page_Load' with the same parameter types

I get this error, and doesnt compile.. anybody get that error before?
1jawsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

eguilhermeCommented:
do you have 2 Page_load methods in the login page ?

if you remove the one that isnt used
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
1jawsAuthor Commented:
I really dont, I have one page load..
protected void Page_Load(object sender, EventArgs e)
    {
}
0
guru_samiCommented:
can you share your login page class name...may be try changing it to login1 and also change inherits of your login page to login1 or create a new page....
0
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

VenabiliCommented:
Can you post your page?
any includes or something like this that will lead to two Page_Loads?
0
VenabiliCommented:
what I am thinking is that you have an embedded page and you have this defined there -- while having it also in the page where you embed it into.
0
1jawsAuthor Commented:
Just relaize something though.. If you see below codes, logout page is uses login stuff.. inherets and uses class too.. I sthat correct or not? maybe thats why?
I have this for login page
<%@ Page Language="C#" MasterPageFile="~/mymaster.master" AutoEventWireup="True"
    CodeBehind="login.aspx.cs" Trace="false" Inherits="login"  %>
public partial class login : System.Web.UI.Page
{
       protected void Page_Load(object sender, EventArgs e)
    {

on logout page.. I have this..

<%@ Page Language="C#" MasterPageFile="~/unsecure.master" AutoEventWireup="true" CodeFile="logout.aspx.cs" Inherits="login"
   %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  </asp:Content>

public partial class login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        FormsAuthentication.SignOut();
        Session.Abandon();
        Response.Redirect("default.aspx");
    }


}
0
VenabiliCommented:
Why don't you rename
public partial class login : System.Web.UI.Page
to
public partial class logout : System.Web.UI.Page

on the logout page?
0
1jawsAuthor Commented:
by mistake, that was it.. thank you all..
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.