We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
Lab Assignment(After Mid TERM)
Q.1 WAP in C#.NET to design airthmatic calculator by using GUI Screen.
Q.2 WAP in C#.NET to design ASP application, for finding greater between two numbers? Q.3 WAP in ASP.NET to design Login screen and show the use of session variable by printing user name and password in next page. Q.4 WAP in ASP.NET to find greater between three numbers. Q.5 WAP in C#.NET to show the use of app.config file. Q.6 WAP in C#.NET to differentiate between function overloading and overriding. Q.7 WAP in C#.NET to show the use of multiple inheritance in C#.NET. Q.8 WAP in C#.NET to show the use of virtual keyword. Q.9 WAP in C#.NET to show the use of garbage collection. Q.10 Create a simple ASP.NET Web Forms application with Visual Studio that includes: An HTML form with fields for user name and email. ASP.NET controls to handle form submission and validation. A Master Page that includes a header, footer, and content placeholder. Demonstrate how to use ASP.NET Themes by: Creating a new theme with styles for text boxes and buttons. Applying this theme to a web form to style its controls consistently. Write a C# method that initializes ASP.NET Web Forms controls, such as text boxes and labels, with default values during the page load event. Include a form with a button to trigger an event that updates a label based on text box input. Q.11 Design and implement a web form in ASP.NET that allows users to submit feedback. Include a text box for comments and a rating control. Implement server- side validation to ensure that comments are not empty and the rating is within a valid range. Q.12 Demonstrate how to handle exceptions in an ASP.NET Web Forms application. Create a page that intentionally throws an exception and use try-catch blocks to handle it gracefully. Display a user-friendly error message. Q.13 Create a SQL Server database with the following requirements: A table named Customers with columns: CustomerID (Primary Key), FirstName, LastName, Email, and Phone. A table named Orders with columns: OrderID (Primary Key), OrderDate, CustomerID (Foreign Key), and TotalAmount. Define the primary and foreign key relationships between the tables.(assume) Write SQL queries to: Insert a new customer into the Customers table. Update the email address of a customer with a specific CustomerID. Delete orders that are older than a specified date. Select all orders along with customer names (use JOIN). Using ADO.NET in C#, write a method to connect to a SQL Server database and perform the following: Insert a new record into a table named Products with columns ProductID, ProductName, and Price. Retrieve all records from the Products table and display them in a console application.