ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Web Engineering
    ITEC3111
    Progress0 / 24 topics
    Topics
    1. Web programming languages (HTML5, CSS3, JavaScript, PHP/JSP/ASP.Net)2. HTML53. CSS34. JavaScript5. PHP6. JSP7. ASP.Net8. Design principles of Web based applications9. Web platform constraints10. Software as a Service (SaaS)11. Web standards12. Responsive Web Design13. Web Applications14. Browser/Server Communication15. Storage Tier16. Cookies and Sessions17. Input Validation18. Full stack state management19. Web App Security - Browser Isolation20. Network Attacks and Session Attacks21. Large scale applications22. Performance of Web Applications23. Data Centers24. Web Testing and Web Maintenance
    ITEC3111›ASP.Net
    Web EngineeringTopic 7 of 24

    ASP.Net

    3 minread
    430words
    Beginnerlevel

    🧩 ASP.NET


    📌 1. Definition

    ASP.NET (Active Server Pages .NET) is a server-side web framework developed by Microsoft used to build dynamic web applications and websites.

    👉 It mainly uses C# or VB.NET for coding.


    🌐 2. How ASP.NET Works (Diagram Description)

    👉 Draw this in exam:

    Browser → Request → Web Server (ASP.NET)
                           ↓
                     Process Code (C#)
                           ↓
                  HTML Response → Browser
    

    ✔ Code runs on server, not visible to user.


    🧱 3. ASP.NET Architecture

    Key Components:

    • CLR (Common Language Runtime) → executes code
    • .NET Framework → provides libraries
    • Web Server (IIS) → handles requests

    🧾 4. ASP.NET Page Structure

    <%@ Page Language="C#" %>
    <html>
    <body>
    <%
    Response.Write("Hello World");
    %>
    </body>
    </html>
    

    🧠 5. Features of ASP.NET

    • Server-side processing
    • High performance
    • Language independence
    • Built-in security
    • Easy database connectivity

    🧩 6. ASP.NET Controls

    📌 Definition

    Controls are elements used to build UI.

    ⭐ Types

    1. HTML Controls

    <input type="text">
    

    2. Server Controls

    <asp:TextBox ID="txtName" runat="server" />
    

    🔀 7. Event Handling

    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Write("Button Clicked");
    }
    

    🌍 8. Form Handling

    <asp:TextBox ID="txtName" runat="server" />
    <asp:Button ID="btn" runat="server" OnClick="Button1_Click" />
    

    🗄️ 9. Database Connectivity

    SqlConnection con = new SqlConnection("connection_string");
    con.Open();
    

    🔑 Steps

    1. Create connection
    2. Open connection
    3. Execute query
    4. Close connection

    🔐 10. State Management

    Types:

    1. ViewState

    • Stores page data

    2. Session

    Session["user"] = "Ali";
    

    3. Cookies

    Response.Cookies["user"].Value = "Ali";
    

    📊 11. ASP.NET Life Cycle (Important)

    👉 Draw this:

    1. Page Request
    2. Initialization
    3. Load
    4. Event Handling
    5. Render
    6. Unload
    

    ⚠️ 12. Important Rules

    ✔ File extension: .aspx ✔ Uses C# or VB.NET ✔ Runs on IIS server ✔ Uses event-driven model ✔ Code is compiled


    📈 13. Advantages

    • High speed (compiled code)
    • Strong security
    • Rich controls
    • Easy debugging
    • Scalable

    ❌ 14. Limitations

    • Requires Windows server (IIS)
    • More complex than PHP
    • Higher resource usage

    🔄 15. ASP.NET vs JSP vs PHP

    Feature ASP.NET JSP PHP
    Language C# Java PHP
    Performance High High Moderate
    Complexity Medium High Low
    Platform Windows Cross-platform Cross-platform

    ❓ 16. Likely Exam Questions

    Short Questions

    1. Define ASP.NET.
    2. What are server controls?
    3. What is ViewState?
    4. What is IIS?
    5. What is Session in ASP.NET?

    Long Questions

    1. Explain ASP.NET architecture.
    2. Describe ASP.NET life cycle.
    3. Explain state management techniques.
    4. Discuss ASP.NET controls with examples.
    5. Compare ASP.NET with JSP and PHP.

    📝 17. Summary / Quick Revision

    • ASP.NET = Microsoft server-side framework

    • Uses C# / VB.NET

    • Key concepts:

      • Server controls
      • Event handling
      • State management
    • High performance due to compiled code

    👉 Used for enterprise-level web applications.


    Previous topic 6
    JSP
    Next topic 8
    Design principles of Web based applications

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time3 min
      Word count430
      Code examples0
      DifficultyBeginner