Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid object name 'User'
Message
 
À
29/04/2004 06:05:26
Bill Benton
North Florida Software Services
Middleburg, Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00898606
Message ID:
00899277
Vues:
18
>I can't find a property named RequiresSecurity in any of my pages. Am I missing something in my setup of the MM Framework? Should this form be a subclass of some other form? If so, how do I subclass whichever form?
>
>Bill Benton

Bill, you have set the RequiresSecurity property in the web pages OnInit method. The docs say:

"You can set this property in the form's OnInit method (you have to expand the "Web Form Designer Generated Code" region in order to see the OnInit method).

For example, in C#
override protected void OnInit(EventArgs e)
{
	this.RequiresSecurity = true;
	//
	// CODEGEN: This call is required by the ASP.NET Web Form Designer.
	//
	InitializeComponent();
	base.OnInit(e);
}
And in VB .NET:
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init

    Me.RequiresSecurity = True

    'CODEGEN: This method call is required by the Web Form Designer
    'Do not modify it using the code editor.
    InitializeComponent()
End Sub
Regards,
Carl.
Carl Olson, Jr.
CEO, Founder
Cerelogic, Inc.

www.cerelogic.com

"Applying rocket science to business."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform