Skip to main content

Practical-03

Problem Statement

Write a program to set a link for a new page.

Solution

To solve this problem, we can use HTML and ASP.NET to create a web form with a link to a new page.

  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 "LinkPage.aspx".
  4. Open the newly created "LinkPage.aspx" file.
  5. In the HTML body section, add the following code:
<h1>Link Page</h1>
<a href="NewPage.aspx">Click here to go to the new page</a>
  1. Save the file.

  2. Build and run the project.

  3. The web form will be displayed with a heading "Link Page" and a link that says "Click here to go to the new page".

  4. Clicking on the link will navigate to the new page "NewPage.aspx".

This completes the solution to the problem.

Summary

In this practical, we learned how to create a web form with a link to a new page using HTML and ASP.NET.