TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
yeziforever
NA
6
0
I am trying to implement Authentication and Authorization using a custom HTTPModule.
Apr 8 2005 12:00 AM
I am trying to implement Authentication and Authorization using a custom HTTPModule. using System; using System.Web; namespace MyModule { public class MyModule : IHttpModule { public void Init(HttpApplication application) { application. AcquireRequestState += (new EventHandler(this.Application_AcquireRequestState)); } private void Application_AcquireRequestState (Object source, EventArgs e) { HttpApplication Application = (HttpApplication)source; User user=Application.Context.Sesseion["User"] ; string url=Application.Context.Request.Path; Module module= //how to write this?????????????// If(!RightChecker.HasRight(user,module)) Application.Context.Server.Transfer("ErrorPage.aspx"); } public void Dispose() { } } } thanks!!!
Reply
Answers (
0
)
How to open a webpage in a different frame of my WebApplication?
Newbie Question - Data Binding C#