Tutorials for maintainers of real applications
Web Forms still runs the back office. Here is how to keep it working.
Postback Notes publishes short, complete examples for ASP.NET Web Forms, C#, ADO.NET and SQL Server, plus the jQuery and CSS that sit on top of them. Every page is written for .NET Framework 4.8 unless it says otherwise, uses parameterised SQL, encodes its output and links to the Microsoft, MDN or jQuery reference it relies on.
Most consulted
- Get and set a TextBox value with JavaScriptClientID, ClientIDMode and what the server sees after a postback
- 100 interview questions on ASP.NET, C#, SQL Server and OOPShort, accurate answers grouped by topic
- SQL injection and how to prevent itParameters, safe dynamic SQL, allow-lists and least privilege
- Enable or disable a TextBox with jQueryprop(), preventDefault and why disabled fields are not posted
- Set a DropDownList selection from scriptBy value or text, with AutoPostBack and event validation
- Fade in and out with a CSS3 transitionOpacity, visibility and reduced motion
- Parser Error after deploymentCould not load type, application folders, CLR versions
- Unable to serialize the session stateStateServer, SQL Server session and [Serializable]
Sections
- ASP.NETWeb Forms controls, postbacks, configuration, deployment errors and the server-side patterns that still run a great many intranet and line-of-business sites.
- C# & ADO.NETC# language questions and data access with ADO.NET and SQL Server: commands, readers, DataSets, parameters, files and e-mail.
- OOP & conceptsObject-oriented programming in C#, framework comparisons, interview preparation and the security basics every .NET developer is asked about.
- jQuery & JavaScriptReading and changing Web Forms controls from the browser: client IDs, validation, events, effects and small DOM utilities.
- HTML & CSSCSS3 transitions, tooltips and HTML elements explained with standalone examples you can paste into a file and open.
Need a SQL Server connection string, or not sure the one you have is right? Our connection string builder and checker writes it for web.config or appsettings.json and flags common mistakes.
Latest tutorials
- web.config for ASP.NET developers: appSettings, connection strings and request validation
A practical guide to the parts of web.config every Web Forms developer touches: reading appSettings with typed defaults, appSettings vs connectionStrings, getting the connection string and opening SQL Server connections safely, and the 'potentially dangerous Request.Form value' error.
- Working with strings in C#: the practical guide (create, compare, format, split, convert)
A practical map of C# strings for ASP.NET developers: immutability, literals and raw strings, interpolation and formatting, comparing safely with StringComparison, searching and splitting, building strings in loops, converting to and from numbers, and null or empty checks.
- State and navigation in ASP.NET Web Forms: ViewState, Session, query strings, cross-page posts and breadcrumbs
How Web Forms pages keep data and pass it on: Session vs ViewState, query strings read on the client and encoded on the server (ampersands included), cross-page posting with PreviousPage, SiteMapPath breadcrumbs and setting the page title and meta tags from code.
- GridView, Repeater and ListView in ASP.NET: binding, paging, selection, highlighting and printing
A complete guide to the data-bound list controls of Web Forms: binding a Repeater, paging it or using a ListView with DataPager, reading the selected GridView row, check-all boxes that survive paging, client-side row values, row highlighting in CSS and jQuery, printing and inline editing.
- Files and e-mail in ASP.NET with C#: uploads, previews, extension checks, folder listings, CSV and HTML mail
A guide to file and mail features in Web Forms: secure uploads and downloads, previewing images before upload, validating file extensions in the browser and on the server, listing folders recursively, exporting file lists to CSV or Excel, and sending HTML templates or GridView data by e-mail.
- Everyday JavaScript and jQuery for Web Forms pages: strings, dates, URLs, mouse position, focus styles and fades
The small client-side utilities Web Forms pages keep needing, in one guide: splitting strings and dates, showing the visitor's local time, parsing /Date()/ JSON dates, reading the URL hash, tracking the mouse position, styling focused inputs and jQuery fading effects.
- DropDownList, RadioButtonList and CheckBoxList in ASP.NET: binding, reading and validating
Everything about the Web Forms list controls in one guide: binding a DropDownList to SQL Server, tooltips on items, reading the selected value or text in JavaScript and jQuery, and validating DropDownList, RadioButtonList and CheckBoxList with validators and script.
- Client script from ASP.NET Web Forms: alerts, confirms, redirects, refresh and page methods
One guide to every way a Web Forms page talks to the browser: alerts and confirms from code-behind, calling JavaScript after a postback, timed redirects and auto-refresh, button redirects, double-submit protection, jQuery page methods and multiple submit buttons in MVC.
- ADO.NET data access in C#: readers, scalars, DataSets, DataTables, TVPs and bulk loads
A complete guide to ADO.NET with SQL Server: ExecuteReader and ExecuteScalar examples, DataSet vs DataTable, the roles of DataReader, DataAdapter and DataView, DataTable.Load, table-valued parameters and SqlBulkCopy imports from CSV or Excel.
- .NET Framework 4.6.2 ends on 12 January 2027: retargeting a Web Forms site to 4.8.1, step by step
Support for .NET Framework 4.6.2 ends on 12 January 2027. How to check the framework installed on the server (registry Release value), retarget a Web Forms project and its web.config to 4.8.1, reinstall NuGet packages and test TLS, cookies and controls before deploying.
- .NET support dates in November 2026: .NET 8 and 9 have ended, .NET Framework 4.6.2 goes in January
Every .NET, .NET Core and .NET Framework support window in one table, from Microsoft's lifecycle data: .NET 8 and 9 ended on 10 November 2026, .NET Framework 4.6.2 ends on 12 January 2027, and what that means for ASP.NET Web Forms sites. With a chart and a CSV file.
