Click here to Skip to main content
15,914,481 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: C# Code for sending the mail automatically if the given time period is about to expire Pin
susmithansgi9-Dec-08 19:02
susmithansgi9-Dec-08 19:02 
AnswerRe: C# Code for sending the mail automatically if the given time period is about to expire Pin
Brij9-Dec-08 18:33
mentorBrij9-Dec-08 18:33 
GeneralRe: C# Code for sending the mail automatically if the given time period is about to expire Pin
Christian Graus9-Dec-08 18:55
protectorChristian Graus9-Dec-08 18:55 
QuestionModal dialog - can tite bar and status bar be removed? Pin
devvvy9-Dec-08 16:26
devvvy9-Dec-08 16:26 
AnswerRe: Modal dialog - can tite bar and status bar be removed? Pin
Brij9-Dec-08 17:39
mentorBrij9-Dec-08 17:39 
QuestionModal dialog opacity Pin
devvvy9-Dec-08 16:13
devvvy9-Dec-08 16:13 
QuestionHttp Modules Pin
CrimeanTurtle20089-Dec-08 13:49
CrimeanTurtle20089-Dec-08 13:49 
AnswerRe: Http Modules Pin
N a v a n e e t h9-Dec-08 17:38
N a v a n e e t h9-Dec-08 17:38 
CrimeanTurtle2008 wrote:
A user that must login with a password and if they login correctly then they have access to certain pages.


I don't think that HTTPModule is really needed for this. You can do this in the page level and I think that would be the appropriate choice than a HttpModule. This can be done by checking for the session in each page load which needs to be secured. More neat approach would be to create separate classes for secured and normal pages and derive your pages from it. You create two classes say NormalPage and SecuredPage both derived from System.Web.UI.Page

SecuredPage will have the session checking code. All the pages which needs to be secured, derive from SecuredPage. It's very easy to implement.

CrimeanTurtle2008 wrote:
Another thing that springs to my curiousity is how you are able to establish the connection between the user interface


You don't access user interface elements from a HttpModule.

HttpModule sits in the request pipeline and allows programmers to examine the requests and take necessary actions if required. It is executed for every request. Most wide used example of HttpModules are URL-rewriting.

HttpHandler is responsible for handling the requests and supplying data. Assume you have to prevent access to all jpg files in your website, you can write a handler and hook the jpg extensions to this handler.

Hope this helps


GeneralRe: Http Modules Pin
CrimeanTurtle200812-Dec-08 23:20
CrimeanTurtle200812-Dec-08 23:20 
QuestionPlease HELP urgent prob with datepicker control on my form! [modified] Pin
dee cronin9-Dec-08 13:37
dee cronin9-Dec-08 13:37 
AnswerRe: Please HELP urgent prob with datepicker control on my form! Pin
dee cronin9-Dec-08 16:49
dee cronin9-Dec-08 16:49 
GeneralRe: Please HELP urgent prob with datepicker control on my form! Pin
N a v a n e e t h9-Dec-08 17:40
N a v a n e e t h9-Dec-08 17:40 
QuestionTrying to access a Repeater's HeaderTemplate controls from event fired in an ItemTemplate control Pin
Cyrilix9-Dec-08 10:51
Cyrilix9-Dec-08 10:51 
Questionemail script Pin
bjh299-Dec-08 9:13
bjh299-Dec-08 9:13 
AnswerRe: email script Pin
Christian Graus9-Dec-08 9:57
protectorChristian Graus9-Dec-08 9:57 
GeneralRe: email script Pin
bjh299-Dec-08 10:21
bjh299-Dec-08 10:21 
GeneralRe: email script Pin
Christian Graus9-Dec-08 11:16
protectorChristian Graus9-Dec-08 11:16 
GeneralRe: email script Pin
bjh299-Dec-08 11:57
bjh299-Dec-08 11:57 
GeneralRe: email script Pin
Christian Graus9-Dec-08 13:29
protectorChristian Graus9-Dec-08 13:29 
GeneralRe: email script Pin
bjh299-Dec-08 14:22
bjh299-Dec-08 14:22 
AnswerRe: email script Pin
N a v a n e e t h9-Dec-08 17:56
N a v a n e e t h9-Dec-08 17:56 
GeneralRe: email script Pin
bjh2910-Dec-08 3:17
bjh2910-Dec-08 3:17 
QuestionMaster Page - Beginner Question... Pin
AndyInUK9-Dec-08 7:55
AndyInUK9-Dec-08 7:55 
AnswerRe: Master Page - Beginner Question... Pin
Christian Graus9-Dec-08 9:58
protectorChristian Graus9-Dec-08 9:58 
QuestionProblem with German special character Pin
Kermit2119-Dec-08 6:18
Kermit2119-Dec-08 6:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.