温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:人才网初学者工具包源码
当前文件路径:JobSiteStarterKit/jobseeker/MyFavorites.aspx.cs

1using System; 2
using System.Data; 3
using System.Configuration; 4
using System.Collections; 5
using System.Web; 6
using System.Web.Security; 7
using System.Web.UI; 8
using System.Web.UI.WebControls; 9
using System.Web.UI.WebControls.WebParts; 10
using System.Web.UI.HtmlControls; 11
12
public partial class MyFavorites_aspx : System.Web.UI.Page 13
{ 14
// Page events are wired up automatically to methods 15
// with the following names: 16
// Page_Load, Page_AbortTransaction, Page_CommitTransaction, 17
// Page_DataBinding, Page_Disposed, Page_Error, Page_Init, 18
// Page_Init Complete, Page_Load, Page_LoadComplete, Page_PreInit 19
// Page_PreLoad, Page_PreRender, Page_PreRenderComplete, 20
// Page_SaveStateComplete, Page_Unload 21
22
protected void Page_Load(object sender, EventArgs e) 23
{ 24
if (!Roles.IsUserInRole(ConfigurationManager.AppSettings["jobseekerrolename"])) 25
{ 26
Response.Redirect("~/customerrorpages/NotAuthorized.aspx"); 27
} 28
} 29
} 30





}
}