Tag Archives: web

ASP.NET C# – Numeric TextBox control validation

There are times when you need to ensure numeric values are entered into a TextBox control. This can be accomplished using a CompareValidator with the Operator attribute set to "DataTypeCheck" and Type attribute set to the numeric type (Double or … Continue reading

Posted in Web Development | Tagged , , | Leave a comment

ASP.NET C# – Retrieving an HTTP Request Parameter

In the C# code use the QueryString array within the Request object to retrieve request values. In the example below the query string parameter named “parm” (no quotes) was received in the HTTP GET request. Request URL: http://www.example.com?parm=thisvalue C# code: … Continue reading

Posted in Web Development | Tagged , , | Leave a comment

ASP.NET Architecture

ASP pages can be written in one of 2 ways – inline or code-behind. Code-behind pages separate the user interface from the business logic, making it a better choice in most cases. From an architecture perspective, code-behind files allow for … Continue reading

Posted in Web Development | Tagged , , | Leave a comment