You can use QueryString for the same, firstly pass the names of cars from webform1 to webform2:
for e.g. on the click of button on WebForm1:
protected void btn1_Click(object sender, EventArgs e)
{
Response.Redirect("WebForm1.aspx?FirstName=" + txt1.Text + "&LastName=" + txt2.Text);
}
Now as you are saying that you are having an Image corresponding to each Image so you can take an ASP:HyperLink whose Image path can be set according to the name of car like this:
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
txt3.Text = Request.QueryString["FirstName"];
txt4.Text = Request.QueryString["LastName"];
if (Request.QueryString["FirstName"] == "Mohit")
{
hyper.ImageUrl="~/image1.jpg";
}
else
{
hyper.ImageUrl = "~/image2.jpg";
}
}
}
Here "hyper" is the ID of Hyper Link which I had taken on design page.
I hope this will solve your problem.