Step - 1 ===================== Site1.Master <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="StudentApplication.Site1" %> <!DOCTYPE html> <html> <head runat="server"> <title>College Information</title> <link rel="stylesheet" href="style.css" /> <asp:ContentPlaceHolder ID="head" runat="server"> </asp:ContentPlaceHolder> </head> <body> <form id="form1" runat="server"> <!-- Header --> <header style="background-color:#f5f5f5; padding:20px; text-align:center;"> <h1>CVR College of Engineering</h1> </header> <!-- Menu --> <asp:Menu ID="menu1" runat="server" Orientation="Horizontal"> <Items> <asp:MenuItem NavigateUrl="~/Home.aspx" Text="HOME" Value="HOME" /> </Items> </asp:Menu> <!-- College Image --> <div style="text-align:center; margin:20px;"> <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/cur.jpg" Width="50%" /> </div> <!-- Content Area --> <div class="content-area" style="margin:20px;"> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server" /> </div> <!-- Footer --> <footer style="background-color:#eee; text-align:center; padding:15px; font-size:12px;"> © 2025 Student Management System. All rights reserved </footer> </form> </body> </html> ================== WebForm1.aspx <%@ Page Title="Home" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="StudentApplication.WebForm1" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <h2>Welcome to CVR College of Engineering</h2> <p>This student management system helps in managing student records efficiently.</p> </asp:Content> =================== Steps: 1. Select ASP.NET Web Application(.NET Framework) with C# 2. Name it StudentApplication 3. Click Create and select empty and tick WebForms checkbox 4. Click Create 5. Right click on solution explorer and click add -> new item -> web forms master page -> add 6. Paste the above Site1.Master code in it 7. Right click on solution explorer and click add -> new item -> web forms with master page -> add -> site1.master -> ok 8. paste the above WebForm1.aspx code in it 9. Right click on WebForm1.aspx in solution explorer and click set as start page 10. Run the code ===================== Note: If you set another name to your project, change it in the first line of Inherits attribute
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter