Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid object name 'User'
Message
 
To
29/04/2004 06:05:26
Bill Benton
North Florida Software Services
Middleburg, Florida, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00898606
Message ID:
00899277
Views:
19
>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."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform