MVC5, ASP.NET Identity Login and Verification Email
Hi,I am creating a new MVC5 Website and the Template I have chosen is Single Page Application from Template section.I want to use both Exteral Login and also Internal Login. When a user Registers using...
View ArticleCode for Logout
Hi Everyone,Please help me in writing code for logout in asp.net..My webapplication is not having site.master page...In my aspx page...<a id="Logout" runat="server">Logout</a>In aspx.cs...
View Articleunable to hide menu item in Role based forms authentication
HiI used the following linkhttp://aspsnippets.com/Articles/Using-ASPNet-Menu-control-with-example-in-C-and-VBNet.aspxgiven by youThanks for thatI created new menu item 'Supervisor' in Web.sitemap.in...
View Articleformsauthentication.decrypt returns null in server with 4.5 version installed
Hello,I have problem with Decrpt method of FormsAuthentication.I have 2 server 2003 for my website: Server 1 with 4.0 Framework installedServer 2 with 4.5 Framework installedThe probleme is server 2...
View ArticleDisplay User Field with Condition.
Hello,I want to display Profile.FirstName first but if it is empty need to display Profile.UserName. Something like this.But this does not work.<li>Hello <%= (Profile.FirstName == null) ?...
View ArticleUsing Membership provider with Code First Migrations
Hi All,This is something totally new to me, and maybe others. I have a web forms application. I already ran the database and registered a user in the local database. the reason I did this was because I...
View ArticleASP.Net Identity
I am starting to work with the new Identity model and I have a question. In the old system there was Roles.GetRoles() to get a list of all the roles for the allplication.I am seting up a screen to...
View ArticleRemoveLogin Not Deleting Individual User Accounts
Hello, I'm using Identity v2 with Web API and using Individual User Accounts. When I call the RemoveLogin method passing the user name and the LoginProvider of "Local" it just removes the password of...
View ArticleError when getting User info from Separate table in foreach loop in ASp.Net...
Hello,I want to Show all Users on a Page. I am storing Profile info in a Separate table called UserProfileInfo. All is working ok. In a foreach loop when I get the FirstName or other fields stored in...
View ArticleLogout not working fully
Hi all,I'm using Forms Authentication and the LoginView/ LoginStatus control to log out.<asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="RedirectToLoginPage" LogoutText="Log Out"...
View ArticleAbout handling Authorization on a web site
When I have created a web site I have created a web.config in the folder where I want to restict access to a web page like this. This is based on forms authentication and that is working very...
View ArticleRendering views according to user role on same ActionResult method.
I have users with different Roles. I want to deliver restricted view according to roles of the users. I have something in my Code which checks roles:bool isAdmin =...
View ArticleASP.Net 4.5 with Identity Login issue on Win2008 R2 w/ IIS7.
Hello,I am actually working on a project with Individual User Account (<authentication mode="None">).When I first sign in, the project works fine. If I sign out and try to sign in as a different...
View ArticleDoes One Asp.net Identity have any user manager?
Hi, I am using VS 2013 RC and developing my first "One Asp.net" Application.I realized that all things about identity is changed and when I tried to connect old asp.net configuration manager it didn't...
View Articleasp.net web configuration tool build in to web app
I have a web application that uses ASP.net roles with a SQL provider and users from an AD provider. Currently I am managing users in roles with the ASP.net Web Configuration Tool.One problem is that we...
View ArticleASP.Net Identity and MySQL?
Hi,Is it possible to use ASP.Net Identity and EF natively with external logins (Facebook, Google etc) and MySQL databases?I remember that ASP.Net Membership and OAuth was tightly coupled with SQL...
View ArticleASP.NET Identity - timing out the logged in user
HiI built an app using the MVC5 template and have noticed that unless a user logs out their session is not dropped.I am using the code supplied with the template. Its a small admin app with only two...
View ArticleHow to enable the popup windwow "Authentication Required"
Hi allHow do I enable the popup windows "Authenticaiton Required" in IE.I need to force the user to enter his/her credentialsThansk
View ArticleGet Profile from user just created
Hello, I want to send and email with an activation code when the user register in the site. I want to store that activation code in aspnet_Profile for comparing it when the user click on the link in...
View ArticleTry to add a username to a role using .net 4.5 asp.net Identity
<div class="userinput">This is a question about the new way of handling authentication and membership which is based on asp.net IdentityI have just create a web application project with web forms...
View Article