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.
- Create a new ASP.NET Web Application project in Visual Studio.
- In the Solution Explorer, right-click on the project name and select "Add New Item".
- Choose "Web Form" from the templates and name it "LinkPage.aspx".
- Open the newly created "LinkPage.aspx" file.
- 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>
-
Save the file.
-
Build and run the project.
-
The web form will be displayed with a heading "Link Page" and a link that says "Click here to go to the new page".
-
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.