QuicklyBuildModelSecurityPage.cs [Quick Category Screen Browse page base class code]

zhaozj2021-02-16  54

sing System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls Using system.Web.ui.htmlcontrols;

Namespace Objlogin.quicklyBuildModel {///

/// securityPage Summary Description. /// public class securitypage: system.Web.ui.page {

/ / Check if the user logs in to set the interface function protected void checkloginandsetpage () {= ""]! = Null & session ["userrank"]! = Null) setPagebyUserrank (); else response.redirect ("Login .aspx ");

///

/// According to permission settings page function /// protected virtual void setpageByUserRank () {response.write ("Depending on Permissions Settings page feature. Current permissions are" session ["UserRank] }}}

转载请注明原文地址:https://www.9cbs.com/read-19355.html

New Post(0)