Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Forms based authentication login with webpart instead of a page?

Posted on 2011-02-11
Medium Priority
Last Modified: 2012-05-11
I read somewhere that to setup forms based authentication, sharepoint would redirect users to a login page, but I want the login box to be visible on the frontpage, if user is logged in, then it should show just something like

You are logged in as: user,

Please guide me in the right direction.
Question by:LuisEstebanValencia
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
  • 5
  • 4
LVL 14

Expert Comment

ID: 34871448
For this to work ,
You will need to use a login page
[1] Either hosted on a public document library on your public site (then you can use a webpart)
[2] Or hosted on your _Layouts folder under the 12 hive , and that would also work but you cannot use a webpart but you can use standard , ASP logon control.

See the CKS Forms based project on codeplex for more help.

Best of luck.

Author Comment

ID: 34871540
I am using sharepint 2010 not 2007
LVL 14

Expert Comment

ID: 34871609
the same for 2010

instead of the 12 hive , use the 14 hive .

best of luck.
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.


Author Comment

ID: 34871686
I dont understand this
[1] Either hosted on a public document library on your public site (then you can use a webpart

You mean, I first create an application page? then a webpart to show that page on a small box?
LVL 14

Expert Comment

ID: 34871713
You can start with a site collection of type (Publishing web site )

and that comes with a logon page already.

You will need to enable anonymous access to that site ( SO be carefull ).

Author Comment

ID: 34871822
You didnt answer me yet, and how can I create  a small login box to put on the homepage? I dont want a separately login page, the customer dont want that

LVL 14

Expert Comment

ID: 34871862
Here is a sample .


after you build your custom page.

You will need to configure the Web.config after you create your new page ,under the Authentication section  
point to the new page.

best of luck


Author Comment

ID: 34885959
Still you havent answered.
I dont want a LOGIN page, I want a login box on the homepage, just as expertsexchange login is on the top right, not on a totally separate page.

I already know how to use the login control since years ago, I just need to know how to make a login box that is not in a completely separate page. it must be on the homepage and when logged in  it must show Welcome User! logged out it must show the user and password textboxes
LVL 14

Accepted Solution

GeorgeGergues earned 2000 total points
ID: 34887729
You can read more here

But the components you might use (without customization ) is the CKS FBA user controls / webparts



use the FBA code .

Best of luck.


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

636 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