Re: Formsauthentication - Page_Load problem
From: Cy Huckaba (cyh_at_delete.t-3.com)
Date: 04/29/03
- Previous message: John McD: "Re: Formsauthentication - Page_Load problem"
- In reply to: John McD: "Re: Formsauthentication - Page_Load problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 29 Apr 2003 16:49:10 -0500
Try this in the intialize event
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
That should work...not sure about the requirement for forms auth, never ran into
that before. I tent to always set my autoeventwireup to false anyway.
Cy
"John McD" <judetherude@hotmail.com> wrote in message
news:07fd01c30e97$e10c34f0$2f01280a@phx.gbl...
> How is this done in C#?
> Why does AutoEventWireup have to be set to false for the
> login page with FormsAuthentication?
>
> TIA - John.
>
> >-----Original Message-----
> >You can add the HANDLES syntax to the page load event
> like this...
> >
> >Public Sub Page_Load(...) Handles MyBase.Load
> > ...
> >End Sub
> >
> >You are basically adding an event hook to that sub. You
> are telling it to fire
> >the load event of the class (webform) that your page is
> inherited from.
> >
> >Cy Huckaba
> >Austin, TX
> >
> >"John McD" <judetherude@hotmail.com> wrote in message
> >news:027601c30e8b$18ebdea0$a301280a@phx.gbl...
> >> How can I get the Page_Load code to execute while still
> >> having the AutoEventWireup attribute set to false?
> >
> >
> >.
> >
- Previous message: John McD: "Re: Formsauthentication - Page_Load problem"
- In reply to: John McD: "Re: Formsauthentication - Page_Load problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|