Archive: 2011

Creating and Using Partial Views in ASP.NET MVC

Scott Walker · Oct 11, 2011

To create a reusable UI component in ASP.NET MVC, you can add a partial view to your project. When adding the view, check the option for Create a partial view (.ascx). If your partial view uses a model, also select Create a strongly-typed view and choose the appropriate View data class.

πŸ’¬ 0 Partial Views

Running an ASP.NET 2.0 Application Inside an ASP.NET 4.0 Site

Scott Walker · Jan 28, 2011

If you have an ASP.NET 4.0 website and need to host a separate ASP.NET 2.0 application inside its folder structure, you may run into configuration conflicts. ASP.NET applications inherit settings from parent web.config files unless explicitly told not to. This can cause runtime errors, version conflicts, or unexpected behavior.

πŸ’¬ 0 ASP.NET

Resolving SQL Command Timeout Issues in ASP.NET

Scott Walker · Jan 28, 2011

If your application displays the error "Connection to database has timed out.", it often means the database operation is taking longer than the default timeout period. This commonly occurs when a SqlDataReader is performing heavy processing or returning a large result set.

πŸ’¬ 0 ASP.NET

Moving Comma‑Delimited Keywords into a Proper SQL Table

Scott Walker · Jan 18, 2011

In a legacy application, keyword data was stored in a single SQL Server field as a comma‑delimited string. This made searching, filtering, and maintaining keywords difficult. To improve data integrity and make keyword management easier, each keyword needed to be extracted and inserted into a dedicated Keywords table.

πŸ’¬ 0