Web Technology Notes
Web Technology Notes
NET
[Link] Features | Classic ASP vs [Link] | Web Applications | Client-Server Architecture | Visual
Studio IDE | Creating Web Projects
Prepared exclusively for the Wireless PSI / Technical Operator Government Exam. All concepts are exam-focused,
concise, and aligned with the official syllabus.
■ TABLE OF CONTENTS
Web technology refers to the tools, languages, protocols, and frameworks used to build and maintain websites
and web applications that run over the internet or an intranet. It includes both client-side (browser) and
server-side (server) technologies.
✎ EXAM TIP: Web 1.0 = static read-only. Web 2.0 = dynamic interactive (AJAX, social media). Web 3.0 =
semantic + AI + decentralized. Most exam questions focus on Web 2.0 features!
First Release January 2002 ([Link] 1.0 with .NET Framework 1.0)
File Extension .aspx (Web Forms), .cshtml (Razor), .vbhtml (VB Razor)
Feature Description
[Link] code is compiled (not interpreted line-by-line). First request compiles pages to
Compiled Code
native code — subsequent requests are very fast.
Language Independence Supports any .NET language — C#, [Link], F#. Developer can choose preferred language.
Rich set of server-side controls (TextBox, Button, GridView, etc.) that generate HTML
Server Controls
automatically with events.
Separates presentation (ASPX) from business logic (CS/VB code-behind file) — clean
Code-Behind Model
MVC-like separation.
Automatically maintains state of server controls across postbacks — stores values in hidden
ViewState
field on page.
Session & Application State Built-in state management — Session for per-user data, Application for global data.
Built-in Security Forms Authentication, Windows Authentication, Role-based security, Membership provider.
Caching Output caching, data caching, fragment caching — improves performance significantly.
Web Services & API Easy to create XML Web Services (.asmx) and RESTful APIs ([Link] Web API).
Consistent look across entire application using Master Pages (Web Forms) or Layouts
Master Pages / Layouts
(MVC/Razor).
Debugging Full integration with Visual Studio debugger — breakpoints, watch windows, step-through.
Cross-Platform (.NET Core) [Link] Core runs on Windows, Linux, and macOS — not just Windows IIS.
Open Source [Link] Core is fully open source on GitHub under MIT license.
✎ EXAM TIP: Key [Link] features: compiled (fast), code-behind (separation), server controls,
ViewState, session management, built-in security, caching. "Compiled code" is the most asked feature!
Common Language Execution engine — manages memory (garbage collection), JIT compilation,
CLR
Runtime security, exception handling
BCL Base Class Library Huge library of pre-built classes for collections, I/O, strings, math, networking, etc.
ActiveX Data Objects Data access layer — connects to databases using DataSet, DataReader,
[Link]
.NET SqlConnection, etc.
Compiles MSIL (IL code) to native machine code at runtime — run once, cache for
JIT Just-In-Time Compiler
reuse
Microsoft Intermediate
MSIL/IL Intermediate code produced by .NET compilers — CLR executes this
Language
✎ EXAM TIP: CLR = heart of .NET = JIT compilation + garbage collection + security. Code compiled to IL
first, then JIT converts to machine code at runtime. This two-step compilation is unique to .NET!
Cross-platform
Platform Windows only Cross-platform
(Win/Linux/Mac)
Side-by-side
No Yes Yes
versioning
WinForms/WPF
Yes Limited Yes
support
Future Legacy (no new features) Merged into .NET 5+ Active development
Classic ASP (Active Server Pages) was Microsoft's first server-side scripting technology, introduced in 1996. It
used VBScript or JScript embedded directly in HTML pages to create dynamic content. Files had .asp
extension.
Limited (VBScript is
Object Orientation Full OOP — C# is strongly typed
weakly OO)
Difficult — no IDE
Debugging Full Visual Studio debugger integration
integration
Web Services Not built-in Built-in XML Web Services and Web API
Platform Windows IIS only Windows IIS; .NET Core = Linux/Mac too
✎ EXAM TIP: Classic ASP = interpreted, VBScript, .asp extension, no server controls, code-mixed.
[Link] = compiled, any .NET language, .aspx extension, server controls, code-behind separation!
[Link] 1.0 2002 .NET 1.0 First release — Web Forms, server controls, code-behind
[Link] 2.0 2005 .NET 2.0 Master Pages, Membership, Themes, Generics
[Link] 3.5 2007 .NET 3.5 LINQ, AJAX built-in, WCF, jQuery
[Link] Core 1.0 2016 Cross-platform Completely rewritten, cross-platform, open source
[Link] Core 2.0 2017 .NET Core 2 Razor Pages, SignalR, Health Checks
[Link] Core 3.0 2019 .NET Core 3 Blazor, gRPC, Worker Services
[Link] 5/6/7/8 2020+ .NET 5+ Unified platform, minimal APIs, .NET MAUI
Content Primarily informational content Functional — performs tasks (e-commerce, email, banking)
User input Minimal (forms, search) Extensive (data entry, transactions, processing)
Server Processing None — file served directly Server processes code before sending HTML
✎ EXAM TIP: Static page = same content always = HTML/CSS only. Dynamic page = content changes =
server-side processing = [Link]/PHP/database. .aspx = [Link] dynamic page!
Handles HTTP requests and serves IIS (Internet Information Services) / Kestrel ([Link]
Web Server
responses Core)
Application-level events — start, end, [Link] file (Web Forms) / [Link] ([Link]
Global Application Class
error, session Core)
.aspx [Link] Web Form page — contains HTML + server controls markup
.[Link] or .[Link] Code-behind file — C# or [Link] code for the .aspx page
[Link] XML configuration file — connection strings, app settings, HTTP handlers
App_Data Folder for database files (MDF) and XML data files
✎ EXAM TIP: .aspx = web form page. .[Link] = code-behind. [Link] = XML configuration.
[Link] = application events. .master = master page template. App_Code = shared classes!
The code-behind model separates the HTML markup from the server-side code. This is one of [Link]'s most
important improvements over Classic ASP.
Client-Server Architecture
Client-Server Architecture is a computing model where one program (the client) requests services and another
program (the server) provides those services. The client and server communicate over a network using standard
protocols like HTTP/HTTPS.
Initiates requests — sends request to server, Web browser (Chrome, Firefox, Edge), mobile app, desktop
Client
receives and displays response app
4 HTTP Request sent Browser sends GET or POST request with headers
5 IIS receives request Web server (IIS) receives and routes request to [Link]
7 HTML generated [Link] renders HTML from server controls and data
9 Browser renders page Browser parses HTML and displays webpage to user
✎ EXAM TIP: HTTP Request types: GET = retrieve data (no body). POST = submit data (has body).
[Link] processes request on server, generates HTML, sends back to browser. IIS is the web server!
Two-Tier
2 Client talks directly to database server Small applications, thick clients
(Client-Server)
✎ EXAM TIP: Three-tier = Presentation + Business Logic + Data tiers. Benefits: scalability,
maintainability, security, separation of concerns. Most [Link] apps use three-tier architecture!
IIS (Internet Information Services) is Microsoft's web server software that hosts [Link] applications. It listens
for HTTP/HTTPS requests on port 80/443 and routes them to the appropriate [Link] application.
Application Pool Isolated process for running web applications — provides security and stability
Site Bindings Configure hostname, IP, and port for each website
Logging IIS logs all HTTP requests — useful for debugging and analytics
Kestrel (Core) Lightweight [Link] Core web server — can run behind IIS or standalone
HTTP is stateless — each request is independent. [Link] provides multiple mechanisms to maintain state
between requests.
Application All users Server memory App lifetime Global shared data
Cookies Per user Client browser Configurable Small data, preferences, auth tokens
QueryString Per request URL string Request only Passing data between pages via URL
Page
Hidden Fields Page only HTML hidden input Storing values in HTML form
postback
Cache All users Server memory Configurable Frequently accessed, rarely changed data
✎ EXAM TIP: ViewState = page-level in hidden field. Session = per-user server-side. Application = global
server-side. Cookie = client-side. QueryString = URL parameter. ViewState is unique to [Link]!
Visual Studio is Microsoft's flagship Integrated Development Environment (IDE) for building .NET applications,
including [Link] web applications. It provides a comprehensive set of tools for writing, debugging, testing, and
deploying applications.
Visual Studio
Target User Cost Key Features
Edition
Students, individual
Community Free Full-featured, limited commercial use
developers, open source
Professional developers,
Professional Paid All Community features + CodeLens, profiling
small teams
Paid
Enterprise Large organizations All Professional + testing, architecture tools
(highest)
✎ EXAM TIP: Visual Studio Community = FREE and full-featured for students. Visual Studio Code =
separate lightweight editor (not the same as Visual Studio). VS = Windows. VS Code = Cross-platform!
The Start Page (now called Start Window) is the first screen shown when Visual Studio launches. It provides
quick access to common tasks.
Recent Projects List of recently opened projects and solutions for quick access
Open a project Browse and open existing project/solution files (.sln, .csproj)
Create a new project Launch New Project dialog to start a new application
Clone a repository Clone a Git repository from GitHub, Azure DevOps, or other sources
News / What's New Visual Studio team blog, updates, announcements (if online)
File New Project, Open Project, Open File, Save All, Close Solution, Recent Files, Exit
Edit Undo, Redo, Cut, Copy, Paste, Find & Replace (Ctrl+H), Go To Definition, IntelliSense
View Solution Explorer, Properties Window, Toolbox, Output Window, Error List, Server Explorer, Team Explorer
Project Add New Item (web form, class, control), Add Existing Item, Project Properties, References
Build Build Solution (F6), Rebuild Solution, Clean Solution, Publish Website
Debug Start Debugging (F5), Start Without Debugging (Ctrl+F5), Step Into (F11), Step Over (F10), Breakpoints
Tools NuGet Package Manager, Options (IDE settings), Extensions and Updates, Visual Studio Command Prompt
Help Documentation, About Visual Studio, Check for Updates, Send Feedback
✎ EXAM TIP: Most used menus: File (new/open), Debug (run F5), Build (build F6), View (windows),
Project (add items). Ctrl+F5 = run without debugging. F5 = run with debugging!
■ 5.4 Toolbars
New Project, Open File, Save, Save All, Undo, Redo, Start Debugging, Solution Configuration
Standard Toolbar
(Debug/Release)
Formatting Toolbar Font, Font Size, Bold, Italic, Underline, Text color — for HTML Design view editing
Debug Toolbar Step Into (F11), Step Over (F10), Step Out, Continue (F5), Stop Debugging, Breakpoints
Layout Toolbar Align controls, size controls, spacing in Design view — useful for Web Forms design
HTML Source Editing Format document, word wrap, show/hide line numbers
Contains all [Link] server controls (TextBox, Button, Label, GridView, etc.)
Toolbox Ctrl+Alt+X
and HTML controls. Drag and drop onto Design view to add controls.
Shows properties of selected control (ID, Text, Color, Width, etc.). Change
Properties Window F4
properties here or directly in ASPX markup.
Shows build output messages, error messages, debug output. Shows "Build
Output Window Ctrl+Alt+O
succeeded" or error count after build.
Lists all errors, warnings, and messages. Double-click error to jump to that line in
Error List Ctrl+\, E
code.
Class View Ctrl+Shift+C Shows all classes, methods, properties in project in tree format.
Browse all .NET framework classes and your project's classes with
Object Browser Ctrl+Alt+J
documentation.
Task List Ctrl+\, T Shows TODO comments, bookmarks, and task shortcuts in code.
Find & Replace Ctrl+H Find text and replace across single file, project, or entire solution.
Code Snippet Manager Ctrl+K, Ctrl+B Manage pre-built code templates — type shortcut + Tab to insert snippet.
The New Project Dialog is accessed via File → New → Project (shortcut: Ctrl+Shift+N). It allows you to select
the type of application to create.
Left Panel — Templates Organized by language (C#, [Link]) and platform (.NET, .NET Core)
Solution Name Name for the solution (.sln file) — can contain multiple projects
Framework dropdown Select .NET version (e.g., .NET 6.0, .NET 8.0, .NET Framework 4.8)
OK / Create button Creates the project with selected template and settings
The Design View (Graphical Designer) in Visual Studio provides a WYSIWYG (What You See Is What You Get)
interface for designing web pages. You can drag and drop controls from the Toolbox onto the design surface.
✎ EXAM TIP: Design View = WYSIWYG drag-drop. Source View = HTML/ASPX markup. Split View = both
together. Double-clicking control in Design view creates event handler in code-behind!
The Code Designer (Code View) is the text editor for writing C# or [Link] code in code-behind files. It provides
IntelliSense, syntax highlighting, code navigation, and debugging support.
Collapse/Expand Collapse method/region for cleaner view Click grey minus icon
✎ EXAM TIP: Page life cycle order: PreInit → Init → Load → Control Events → PreRender → Render →
Unload. Page_Load is most used. Check IsPostBack in Page_Load to distinguish first load vs form
submit!
Display text —
Label asp:Label Text, CssClass, ForeColor
non-editable output
Hyperlink-style button —
LinkButton asp:LinkButton Text, OnClick
PostBack
Navigation link — no
HyperLink asp:HyperLink Text, NavigateUrl, Target
PostBack
Items, SelectedItem,
DropDownList asp:DropDownList Dropdown select list
OnSelectedIndexChanged
ValidationSummar
asp:ValidationSummary Shows all validation errors DisplayMode, ShowMessageBox
y
✎ EXAM TIP: All [Link] server controls use runat="server" attribute. They generate HTML
automatically. GridView = tabular data. TextMode="Password" hides text. ID is used in code-behind!
9 Add Controls Drag TextBox from Toolbox → drag Button → drag Label
Start Debugging F5 Run app with debugger — can use breakpoints, watch variables
Step Into F11 Execute next line — goes inside method calls
Step Over F10 Execute next line — does NOT go inside method calls
Debug →
Watch Window Windows → Monitor variable values during debugging
Watch
Debug →
Locals Window Windows → See all local variable values automatically
Locals
Master Pages .master file — shared layout template for all pages
HTTP POST Submit data — has request body — data not in URL
Visual Studio Community Free full-featured IDE for students and individuals
Set breakpoint F9
IsPostBack True if page loaded due to form submit; False if first visit
.NET Framework vs Core .NET Framework = Windows only. .NET Core = cross-platform
WYSIWYG What You See Is What You Get — Design View mode
[Link] = Active Server Pages .NET. Developer = Microsoft. Year = 2002. Files = .aspx (Web Forms)
Tip 1
or .cshtml (Razor/MVC)
Classic ASP = interpreted + VBScript only + .asp extension + code mixed with HTML. [Link] =
Tip 2
compiled + any .NET language + code-behind separation!
Code-behind = separates HTML (aspx) from logic ([Link]) — biggest improvement over Classic ASP.
Tip 3
Double-click control = auto-creates event handler in code-behind!
[Link] = XML config file. [Link] = application events. .master = Master Page layout.
Tip 4
App_Code = shared classes. App_Data = database files!
IIS = Internet Information Services = Microsoft web server = hosts [Link] apps. HTTP port=80.
Tip 7
HTTPS port=443. Application Pool = isolated app process!
CLR = Common Language Runtime = heart of .NET. JIT = compiles IL to native code. Garbage
Tip 8
Collection = automatic memory management. This makes [Link] faster than Classic ASP!
All the best for your Wireless PSI / Technical Operator Exam! Prepare smart, revise daily, practice
MCQs regularly. ■