I'm not much familiar with static indeed, and I was able to make a static variable and store the data inside but I'm not quite sure on how to pass that data between the web pages.
It makes no logical sense to pass a static variable because by definition a static variable is global to the application. Simply set the variable and read it in another page. However, I'm certain the person that assigned this task does not expect you to create a static variable. I assume the task is to create a static class that saves the data which is a totally different concpet.
To get data in another page, the standard approach is passing a unique key to the page and using the key to look up the data in a database. Usually a querystring is used (HTTP GET) which passes the ID in the URL. For example...
http://myapp/default.aspx?id=1
Again, I recommend that you speak with the person that assigned the task as I do not think you understand the assignment and asking the same question on this forums is not going to help until you take the time to understand the fundamentals.
Static variable example which I'm sure is not the assignment.
Default.cs
public class StaticModel
{
public static string MyStaticVar;
}
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
StaticModel.MyStaticVar = "Hello World";
}
}
Default.aspx
<div>
<a href="GetStaticVar.aspx">View the Static Variable</a>
</div>
GetStaticVar.cs
protected void Page_Load(object sender, EventArgs e)
{
Label1.Text = StaticModel.MyStaticVar;
}
GetStaticVar.aspx
<div>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</div>
Reference documentation
You might consider going through a few Web Forms tutorials to learn the basics.
Getting Started with ASP.NET 4.5 Web Forms and Visual Studio 2017