ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalITEC3111Aspnet
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    ITEC3111

    Web Engineering

    Progress0 / 24 done
    Topics24
    1Web programming languages (HTML5, CSS3, JavaScript, PHP/JSP/ASP.Net)2HTML53CSS34JavaScript5PHP6JSP7ASP.Net8Design principles of Web based applications9Web platform constraints10Software as a Service (SaaS)11Web standards12Responsive Web Design13Web Applications14Browser/Server Communication15Storage Tier16Cookies and Sessions17Input Validation18Full stack state management19Web App Security - Browser Isolation20Network Attacks and Session Attacks21Large scale applications22Performance of Web Applications23Data Centers24Web Testing and Web Maintenance
    3 min read
    Topic 7 of 24
    Topic Study Note Illustration
    07

    ASP.Net

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

    ๐Ÿงฉ 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 view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    3mremaining
    430words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Web Engineering