Click here to Skip to main content
15,891,726 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: manage session Pin
ToddHileHoffer3-Apr-07 8:01
ToddHileHoffer3-Apr-07 8:01 
GeneralRe: manage session Pin
ASPDevelopper12348753-Apr-07 8:27
ASPDevelopper12348753-Apr-07 8:27 
QuestionEdit <head> in page with code behind file Pin
Alice@mywonderland3-Apr-07 7:08
Alice@mywonderland3-Apr-07 7:08 
AnswerRe: Edit <head> in page with code behind file Pin
kubben3-Apr-07 7:43
kubben3-Apr-07 7:43 
AnswerRe: Edit <head> in page with code behind file - Thanks Pin
Alice@mywonderland3-Apr-07 22:52
Alice@mywonderland3-Apr-07 22:52 
QuestionASP.Net from Scratch Pin
xbiplav3-Apr-07 6:25
xbiplav3-Apr-07 6:25 
AnswerRe: ASP.Net from Scratch Pin
MinhajuddinK3-Apr-07 7:10
MinhajuddinK3-Apr-07 7:10 
QuestionPage-wide state with Master pages? Pin
Tom Welch3-Apr-07 6:11
Tom Welch3-Apr-07 6:11 
I am a bit late to VS 2005. Today I am looking at ways to rebuild one of our websites in .NET 2.0. Rather than convert I am recreating pages as I go. This isn't an issue because they need to be reworked anyway.

I opted against using the VS 2005 Web Applications Project tools to emulate 2003 in 2005 and don't want to consider that option. This site is going to be redone as a new site would.

That being said...

Our current site is made of of pages derived from a BasePage. They host user controls derived from BaseControl. Using these 2 base classes we have every page automatically check user authentication, redirection, and other housekeeping. This is done entirely on BasePage and is available to BaseControls.

If that is unclear, when a user accesses a page the BasePage checks several sources for user authentication (Session,Cookies,Database). If not correct, the user is redirected to a SignIn or AccessDenied page. If correct, the user's state is loaded for the page. From there all components on the page can query the state and populate their contents.

How would I make this work for a MasterPage setup?

The master page (as I see it) will host my UserControls directly (header, footer, side-menu). These user controls need access to the user state. The hosted content pages will also need to access the same state. I don't want each separate component hitting the database loading bits and pieces.

Basically:
Request page<br />
Page is assembled<br />
  Check for security<br />
    If needed, redirect<br />
    Otherwise, load state for page<br />
      Header populates with state info<br />
      Side-menu populates based off state info<br />
      Content page populates based off state info<br />
Send page to client


Something tells me that I am not quite "getting it". Am I supposed to load up the Session with huge state objects? I wouldn't think so. Too many simultaneous users for that. Can I just bulk up the MasterPage to do everything? I am lost.
AnswerRe: Page-wide state with Master pages? Pin
ToddHileHoffer3-Apr-07 7:58
ToddHileHoffer3-Apr-07 7:58 
GeneralRe: Page-wide state with Master pages? Pin
Tom Welch3-Apr-07 11:05
Tom Welch3-Apr-07 11:05 
Questionprinting a code behind textbox text value Pin
indian1433-Apr-07 5:53
indian1433-Apr-07 5:53 
QuestionPLease help getting error as The process cannot access the file 'D:\Inventracksys\Inventorytracking Vendorwisereport_1.emf' because it is being used by another process Pin
mohd imran abdul aziz3-Apr-07 4:33
mohd imran abdul aziz3-Apr-07 4:33 
Questiondate range search Pin
Kunal P3-Apr-07 4:24
Kunal P3-Apr-07 4:24 
QuestionRun time access Pin
viveknair203-Apr-07 4:02
viveknair203-Apr-07 4:02 
AnswerRe: Run time access Pin
Jaiprakash M Bankolli3-Apr-07 4:21
Jaiprakash M Bankolli3-Apr-07 4:21 
Questionsending a message Pin
Oga M3-Apr-07 3:53
Oga M3-Apr-07 3:53 
QuestionDynamically created button holding relevant data Pin
joon vh.3-Apr-07 3:52
joon vh.3-Apr-07 3:52 
AnswerRe: Dynamically created button holding relevant data Pin
Venkatesh Mookkan3-Apr-07 19:07
Venkatesh Mookkan3-Apr-07 19:07 
Question2 connect compare validator wit database [modified] Pin
mvj_asp3-Apr-07 2:22
mvj_asp3-Apr-07 2:22 
AnswerRe: 2 connect compare validator wit database Pin
Not Active3-Apr-07 3:36
mentorNot Active3-Apr-07 3:36 
Questionpop up blocker Pin
harsh_c3-Apr-07 2:13
professionalharsh_c3-Apr-07 2:13 
AnswerRe: pop up blocker Pin
kubben3-Apr-07 2:25
kubben3-Apr-07 2:25 
GeneralRe: pop up blocker Pin
harsh_c4-Apr-07 2:25
professionalharsh_c4-Apr-07 2:25 
QuestionArchitectural discussion of Digital Signature - Detached or embedded? Pin
priyank853-Apr-07 2:11
priyank853-Apr-07 2:11 
QuestionJoin Query in sql Pin
samsonx3-Apr-07 1:16
samsonx3-Apr-07 1:16 

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.