Tag: ASP.NET
-
ASP.NET "Service Unavailable"
If you have threaded processes called by your ASP.NET code, and those processes crash, your site may start giving Service Unavailable errors.
-
CommandEventHandler Event Won't Fire for Button in ASP.NET Custom Control
Problem: I created a custom control with a dynamic button and attached an event handler to that button. When I run the control, clicking the button causes a postback but the event is not fired.
-
ASP.NET: A potentially dangerous Request.Form value was detected from the client
This error is caused by the presence of HTML in the fields returned by a form post. In many cases, for example page management tools, you may want to allow your users to enter text formatted with HTML. By default, ASP.NET doesn’t like this.
-
Replacing / Adding Line Breaks in GridView Text
The GridView is a powerful control for quickly and easily displaying tables of data. However, a raw dump of information is not always good - when displayed by a web browser, normal line breaks are simply rendered as spaces.
-
Handling Relative Paths Programmatically In ASP.NET
One of the nicest features in ASP.NET is its out-of-box support for relative paths in hyper links and other controls. This is very important for developers whose code resides within the root of their testing environment but within a sub-directory of the production server.
-
404 Errors when Accessing ASPX Pages on Windows 2003
By default, windows 2003 Server is locked down and won’t display ASP.NET pages.
-
SQL Connections in ASP.NET - What you learned is WRONG!
When we learn how to open and use a database connection with ASP.NET, as with any other programming concept in any other programming language, the simplified version used to explain what’s going on is not truly representative of the quality professional code we will one day be expected to write. Opening and Closing Connections
-
Maintaining SQL Connections in ASP.NET
There is a lot of conflicting advice with regard to the proper way of using SQL connections in web work. The two main schools of thought are:
-
How To Format Dates Using DataFormatString
During a recent project I was setting up a DetailsView control for a record’s tombstone information [note: this logic is the same in DataGridView, GridView, and anywhere else that DataFormatString is used].