Hi sofia,
Refer below code.
HTML
Home
<div class="container" style="padding: 20px; height: auto; background-color: darkseagreen; border-radius: 10px 6px">
<div>
<div class="centerHaeder" style="text-align: center">
<h1>WELCOME GUEST</h1>
</div>
<hr />
<div style="text-align: center">
<p><i>GUEST NAME AND Designation!</i></p>
</div>
</div>
<div class="col-sm-12">
<b>
<asp:Label ID="Label1" runat="server" Text="Guest Name"></asp:Label></b><br />
<asp:TextBox ID="txtName" runat="server" Width="100%" CssClass="form-control"></asp:TextBox>
</div>
<div class="col-sm-12">
<br />
<b>
<asp:Label ID="Label2" runat="server" Text="Guest Designation"></asp:Label></b><br />
<asp:TextBox ID="txtdesignation" runat="server" Width="100%" CssClass="form-control"></asp:TextBox>
</div>
<div class="col-sm-12">
<br />
<b>
<asp:FileUpload ID="FileUpload1" runat="server" />
</div>
<div class="col-sm-12" style="text-align: center">
<br />
<asp:Button ID="btnAddBook" runat="server" Text="Add Book" OnClick="btnAddBook_Click" CssClass="btn-success" />
</div>
</div>
welcome
<table>
<tr>
<td>
<asp:Image runat="server" ID="imgLogo" /></td>
<td><asp:Label ID="lblName" runat="server" /></td>
</tr>
<tr>
<td colspan="2">
<asp:Label ID="lblDesignation" runat="server" /></td>
</tr>
</table>
Code
Home
protected void btnAddBook_Click(object sender, EventArgs e)
{
string name = txtName.Text;
string designation = txtdesignation.Text;
string fileName = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName);
if (!System.IO.Directory.Exists(Server.MapPath("~/Logo")))
{
System.IO.Directory.CreateDirectory(Server.MapPath("~/Logo"));
}
string filePath = "~/Logo/" + fileName;
FileUpload1.SaveAs(Server.MapPath(filePath));
string logo = filePath;
Session["Name"] = name;
Session["Designation"] = designation;
Session["Logo"] = logo;
Response.Redirect("~/welcome.aspx");
}
welcome
protected void Page_Load(object sender, EventArgs e)
{
imgLogo.ImageUrl = Session["Logo"].ToString();
lblName.Text = Session["Name"].ToString();
lblDesignation.Text = Session["Designation"].ToString();
}