Tag: ASP.NET

Using Themed CSS Files Requires a Header Control

When using ASP.NET themes and you specify the global theme in web.config you can run into problems when you want to create a page that does not use the theme. Read More »

Posted in Programming | Also tagged | Leave a comment

ASP.NET Server-side Comments

When working with an ASP.NET page or control you many want to remove code temporarily or stop some code executing while debugging. This can be achieved easily using the server-side comment opening, <%--, and closing tag, --%>.

Read More »

Posted in Programming | Tagged | Leave a comment

A Potentially Dangerous Request.Form Value Was Detected

ASP.NET automatically checks for HTML being sent by GET or POST requests as a security precaution and throws the following nasty error if it finds any: Read More »

Posted in Programming | Also tagged | Leave a comment

mysql.data Incorrect number of arguments for PROCEDURE

The following error occurred while using the MySQL Connector for ASP.NET:

mysql.data Incorrect number of arguments for PROCEDURE 'stored procedure name' expected 3 got 2

Read More »

Posted in Programming | Also tagged , | Leave a comment

Nesting ASP.NET User Controls

While trying to nest ASP.NET user controls inside other user controls you may experience the following error:

The page ‘[control 1].ascx’ cannot use the user control ‘[control 2]‘, because it is registered in web.config and lives in the same directory as the page.

Read More »

Posted in Programming | Also tagged | Leave a comment