How to add accounts to a website ASP.NET C#
<p>I created a new ASP.NET, C# empty website and I have my own database in the <code>App_Data</code> folder. I have a master page as well in the solution.</p>

<p>Anyway, I want to create a login page, but my issue is, how would I know whether a user is logged in or not when navigating around the site.</p>

<p>To elaborate more, when the user opens the home page, it'll have a label saying "Login" and linking to <code>/login.aspx</code></p>

<p>But then when the user logs in, I want the "Login" label at the top to change to, <code>Username</code> + <code>a "Logout" label</code> (which ofcourse logs the user out).</p>

<p>My question is, say I go to another page, say <code>/AboutUs.aspx</code>, how would I know, if there is anyone logged in and who is logged in?</p>

<p>I've googled this alot and seen many solutions, including <code>Membership Provider</code> and <code>LoginView</code>, but I don't understand both of them (yes, I've read many articles; even MSDN articles).</p>

<p>Im not really used to programming with ASP.NET.</p>

<p>Any help please! Thanks!</p>
