Question

I have an ASP.NET home page where user provides his login ID. Depending on the application (SharePoint Site) the ID is associated to- the user is directed to the respective sharepoint site.

For example, if user is site1user, the ASP.NET page directs the user to sharepointsite1.

I got it working this far.

Now, how do I pass the login ID from ASP.NET to the SharePoint login page so that the user need not type in user ID again.

I tried URL parameter passing. But it didn't work.

Was it helpful?

Solution

If you're using forms-based authentication (FBA) in your ASP.NET application you can also configure SharePoint to use FBA too and get SharePoint to use the same FBA configuration as your ASP.NET application.

The benefit of doing this is that you can have a user login to your ASP.NET application and simply redirect them to their SharePoint site and they'll be logged in automatically. You don't have to pass the username to SharePoint in any way or customize any pages. It can be a little tricky configuring FBA in SharePoint if you haven't done it before but these resources should help:

OTHER TIPS

You need to customize the login.aspx page and write the code that will fetch the ID from the Query String and set it to the user name text box.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top