473,320 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

LoginView issues again

Hi

ASP.NET 2.0

I'm about to start developing a website using asp.net 2.0. The webpages will
display different info determined if the user is authenticated or not. So if
the the user isn't authenticated it will for example display a login window,
and if authenticated display something else.

So I'm wondering if this can be done using LoginView when not using the
Membership provided by asp.net 2.0 ?
If possible then how, you got any links to articles about this issue?

Best Regards!
Sep 24 '08 #1
1 1030
No, it is not possible. But you do not have to use the default method
Microsoft has of using the Membership. You can, if you have a completely
different schema/method create your own provider. Then you can use the
LoginView.

Here is a good set of articles:
http://aspnet.4guysfromrolla.com/articles/120705-1.aspx

For an example, I would look at this:
http://msdn.microsoft.com/en-us/library/f1kyba5e.aspx

There is also a sample membership provider linked off this article. David
Hayden has also written an article, but his is extremely simple, so it could
be insulting to read something so simple if you already have a good grasp of
..NET (great for beginners to the provider model, however). There are also
articles on 15 seconds, devx, etc.

The custom membership model is one I use often on sites, as the
ASPNET_Profile table is a nasty way of storing extra information to adorn a
user object.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:Ol**************@TK2MSFTNGP02.phx.gbl...
Hi

ASP.NET 2.0

I'm about to start developing a website using asp.net 2.0. The webpages
will display different info determined if the user is authenticated or
not. So if the the user isn't authenticated it will for example display a
login window, and if authenticated display something else.

So I'm wondering if this can be done using LoginView when not using the
Membership provided by asp.net 2.0 ?
If possible then how, you got any links to articles about this issue?

Best Regards!
Sep 24 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: RedEye | last post by:
Hello, I have been looking for a way to add roles to a LoginView control programmatically and it's not working. I have called the sub at init and load and neither work. Does anyone know what I...
3
by: ad | last post by:
I use a LoginView to authenticate user. Can we set the focus in the UserName or Password of the LoginView?
0
by: keithb | last post by:
Using Website | ASP.NET Configuration, I set up a role name Administrators and a user named admin. In my application, I put a LoginView Conrol on my master page. The LoginView control has an...
1
by: Phil | last post by:
I have gridview with a templatefield in which is a loginview. The loginview displays a delete linkbutton for a specified group only. when a record is delete the loginview displays the contents of...
0
by: Sean Sims | last post by:
recently added a LoginView to an existing page, it now looks like this: <%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="AtPress.aspx.cs" Inherits="AtPress"...
0
by: pagates | last post by:
Hello All, Is there a way to show common "stuff" in the LoginView for all logged in users when using <RoleGroups>? In other words, I have a number of links that all users that log in should...
3
by: =?Utf-8?B?am1obWFpbmU=?= | last post by:
When I put asp controls inside the LoginView it removes the codebehind references so that the page will not build. For example: <asp:LoginView ID="LoginView" runat="server" > <LoggedInTemplate>...
1
by: Morgan Cheng | last post by:
I tried to add a LoginView control in OnClick eventhandler of a button. The code is like below LoginView login = new LoginView(); PlaceHolder1.Controls.Add(login); After run the page, I...
2
by: Jeff | last post by:
Hey ASP.NET 2.0 I'm about to start programming a new website at work. My boss want's me avoid using the Membership system in ASP.NET 2.0 (probably because he don't understand how it...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.