Skip to main content

Practical-01

Problem Statement

Write a program to print "HELLO COMPUTER" on a web form.

Solution

To solve this problem, we can use ASP.NET and C# to create a web form and display the desired message.

  1. Create a new ASP.NET Web Application project in Visual Studio.
  2. In the Solution Explorer, right-click on the project name and select "Add New Item".
  3. Choose "Web Form" from the templates and name it "HelloComputer.aspx".
  4. Open the newly created "HelloComputer.aspx" file.
  5. In the HTML body section, add the following code:
<h1>HELLO COMPUTER</h1>
  1. Save the file.

  2. Build and run the project.

  3. The web form will be displayed with the message "HELLO COMPUTER" in a heading.

This completes the solution to the problem.

Summary

In this practical, we learned how to create a web form using ASP.NET and display a message on it.