using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Windows.Forms; publicpartialclass CSKeyLocked : System.Web.UI.Page ...{ protectedvoid Page_Load(object sender, EventArgs e) ...{ if (System.Windows.Forms.Control.IsKeyLocked(Keys.CapsLock)) ...{ Response.Write("Caps Lock is ON."); } else ...{ Response.Write("Caps Lock is OFF."); } } }