Solved

Multiple content pages & ASP.net membership.

Posted on 2011-02-18
1
295 Views
Last Modified: 2012-05-11
Hi,

I have been looking over the web but I can not find what I am looking for.  I wonder if you can provide me resources on this type of topic and I can read up and learn more about it.

Here is my scenario:

I have a main master page with 2 content place holders with content pages in them.

In content page 1:  I want to put in the login control
In content page 2: I want to eventually display the content once the user authenticated.

I plan to use the .NET membership.  When I look up on MSDN they have great examples but they are done in one single page or content page only.  

So can you show me how can I handle session variable ect... across multiple place holders?  If a user logged in successfully in content place holder 1, how can content place holder 2 be authenticated as well?

Any direct example or resources are great.
0
Comment
Question by:fylix0000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 21

Accepted Solution

by:
Dale Burrell earned 500 total points
ID: 34930007
MasterPages result in a single page of HTML - they are just a way to template the design. Therefore any authentication applies to everything as it normally would. You seem to be thinking of them as frames which are essentially separate html pages - but that is not the case.

So the answer is - it already works that way, you don't have to do anything.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question