ASP.NET
Web Forms controls, postbacks, configuration, deployment errors and the server-side patterns that still run a great many intranet and line-of-business sites.
- 'Unable to serialize the session state' in ASP.NET: why it happens and how to fix it
The 'Unable to serialize the session state. In StateServer and SQLServer mode…' error explained: what out-of-process session state requires, marking classes [Serializable], NonSerialized fields, objects that can never be serialized, and storing keys instead of heavy objects.
- .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.
- Bind a GridView with ExecuteReader in ASP.NET (C#)
Fill an ASP.NET GridView straight from a SqlDataReader: the DataSource and DataBind sequence, why the connection must stay open while binding, loading into a DataTable or a list instead, formatting columns, and when paging requires a different approach.
- Cascading Country, State and City DropDownLists in ASP.NET without a full page refresh
Build dependent Country, State and City DropDownLists in ASP.NET Web Forms backed by SQL Server: AutoPostBack and SelectedIndexChanged, resetting child lists, then wrapping the lists in an UpdatePanel so only the lists refresh, with notes on event validation and view state.
- Choosing hosting for an ASP.NET website: what to check before you pay
A vendor-neutral guide to hosting ASP.NET applications: Web Forms on Windows and IIS versus ASP.NET Core on Linux or Windows, shared hosting, VPS and cloud platforms, SQL Server options, the technical checklist, and how to test a host before migrating.
- 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.
- 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.
- Export GridView data to Excel, Word, CSV text and PDF in ASP.NET (C#)
Export the contents of an ASP.NET GridView: real .xlsx files with ClosedXML, CSV text with proper escaping, the old HTML-as-Excel/Word trick and its warning, PDF with an open-source library, and the VerifyRenderingInServerForm error explained.
- 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.
- How to use the ASP.NET Menu control: static items, Web.sitemap and styling
The ASP.NET Web Forms Menu control explained with examples: static MenuItems, binding to Web.sitemap through a SiteMapDataSource, horizontal and vertical layouts, dynamic sub-menus, RenderingMode List with CSS, security trimming by role, and highlighting the current page.
- Insert, edit, update and delete records with a form and a GridView in ASP.NET (C#)
A simple CRUD page in ASP.NET Web Forms: a form above a GridView adds records, a Select button loads a row into the form for editing, Update and Delete work by primary key, all with parameterised ADO.NET commands.
- Parser Error when deploying an ASP.NET application: causes and fixes
How to read the ASP.NET 'Parser Error' and 'Configuration Error' pages after a deployment, and fix the usual causes: Could not load type, wrong CodeBehind vs CodeFile, missing bin assemblies, application not configured in IIS, allowDefinition=MachineToApplication, duplicate config sections and framework version mismatches.
- Passing multiple parameters in an ASP.NET QueryString (C#)
Build URLs with several query string parameters in ASP.NET Web Forms, encode values correctly with UrlEncode or HttpUtility.ParseQueryString, read and validate them with Request.QueryString, handle repeated keys, and avoid putting sensitive data in the URL.
- 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.
- The three ASP.NET programming models: Web Forms, MVC and Web Pages
How ASP.NET Web Forms, ASP.NET MVC and ASP.NET Web Pages (Razor) differ in structure, state handling, control over HTML and testability, where each stands today on .NET Framework, and how ASP.NET Core's Razor Pages, MVC and Blazor took over their roles.
- 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.
