thinkinterview » interview questions
« Previous

interview Questions

next »
question In ASP.NET web application you are creating a Web Form. This Web Form allows users to log on to a Web site which use a Login control named Login1. Membership data for the application is stored in a SQL Express database and .mdf file is in the App_Data directory. In ASP.NET web application you have to configure your application so that the membership data is stored in a local Microsoft SQL Server database. You have following setting in the Web.config file.<membership defaultProvider="MySqlProvider"> <providers> <add name="MySqlProvider" type="System.Web.Security.SqlMembershipProvider,  System.Web,Version=2.0.0.0,  Culture=neutral, PublicKeyToken=b03f5f7f11d40s3a" connectionStringName="MyOrgSqlProviderConnection"/> </providers></membership> Which else should you perform?
  • 1. Run Aspnet_regsql.exe to create the Microsoft SQL Server database.
  • 2. Set Login1's MembershipProvider property to MyOrgSqlProviderConnection.
  • 3. Add the following code in the Web.config file. <connectionStrings> <add name="MyOrgSqlProviderConnection" connectionString="connection string" /></connectionStrings>
  • 4. Add the following code in the Web.config file. <appSettings><add key="MySqlProviderConnection" value="connection string" /></appSettings>

Next Queston » You company gives you a task to secure existing ASP.NET Web site...

You company gives you a task to secure existing ASP.NET Web site by redirecti... View full queston »


Posted in: ASP.NET(45) |