Hi all,
So, the idea is to have a single application for different clients (different databases, etc).
What I came up with is the encoded client id is being passed to the first page of application (let's say login.aspx) as a query string.
So, I decode it, and every time I need role, membership providers or database itself, I do this
role provider: "RoleProvider" + clientName
membership provider: "membership" + clientName
connectionstring: "connectionString" + clientName
So I store all these role, membership providers and connection strings in webconfig and if I need to deploy a new client, I just need to add those 3 lines of code.
My current problem is // this line will take default role provider and I was not able to find a way around it
Before I came up with this solution, I tried custom role and membership provider, but that solution had its own issues. I still had to store the default connection string for membership and ro ...
Go to the complete details ...