Newbie to ASP.NET.
In visual Studio 2010 Ultimate I created a new ASP.Net 3.5 website and then added forms authentication using toolbox controls dropped on to the page. After creating a new user using these controls in my test environment a database was created called ASPNETDB.MDF inside the App_Data folder of the project.
I also made modifications to this database by adding tables to it that I access in code from web forms on the site using connection string:
Data Source=.\SQLEXPRESS;AttachDbFilename=C|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;Connect Timeout=30;User Instance=True
Now I am ready to put the site on my web host, 1and1.com. I created a database in the 1and1 Control Panel. The 1and1 help pages says to use a connection string like the following to connect to a 1and1 hosted SQL Server database:
server=mydbHostName.db.1and1.com; initial catalog=mydbName;uid=mydbUser;pwd=mydbPassword
I have tested this connection and can create and access tables using this connect string.
My question is how do I tell forms authentication to use this new database on the 1and1 server?