Connect your login page with a SQL Server database in ASP.NET Web Forms (C#)

βœ… Step-by-Step: Login with SQL Server Database πŸ”Ή 1. Create a Database Table In SQL Server, create a table to store login credentials: sqlCopyEditCREATE TABLE AdminLogin ( ID INT PRIMARY KEY IDENTITY, Username NVARCHAR(50), Password NVARCHAR(50) -- In real apps, use hashed passwords ); πŸ“Œ Insert a sample record: sqlCopyEditINSERT INTO AdminLogin (Username, Password) VALUES ('admin', '123456'); πŸ”Ή 2. Add Connection String in Web.config In your ASP.NET project’s Web.config, add this inside <configuration>: xmlCopyEdit<connectionStrings> <add name="conns" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=YourDatabaseName;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings> πŸ“Œ Replace YourDatabaseName with your actual DB name. πŸ”Ή 3. Update Your Login Page Code Replace the…

🧠 Top 10 MCQ Questions on Computer Fundamentals for Competitive Exams (With Answers)

Computer Fundamentals is a high-scoring section in many competitive exams like SSC, RRB, IBPS, UPSC, and even campus placements. A strong grasp of basic concepts can help you crack this section easily. Below are the Top 10 Multiple Choice Questions (MCQs) on Computer Fundamentals along with correct answers and brief explanations. βœ… Q1. What does CPU stand for? A. Central Processing UnitB. Central Programming UnitC. Central Performance UnitD. Control Processing Unit βœ”οΈ Answer: A. Central Processing UnitπŸ“ The CPU is considered the brain of the computer. It carries out instructions from software. βœ… Q2. Which of the following is an…