This user has contributed 0 articles, 28 code samples and posted 0 messages in our discussion forums.
Code Samples
-
An example of using a web handler file which you can use when your output is not going to a browser but to an xml-consuming client of some kind, keeping you away from all the browser technology you don't need.. 
-
This code shows the simplest way to automatically convert the information in an object to an XML file and back into an object. This is useful if you need to make information available web-server like on your server for other applications to pick it up.. 
-
Demonstrates an ASP.NET Web Form which tells you if your file is not well-formed and then if it is not valid it lists out the specific reason (like in XMLSpy), quite helpful to find an error in a large XML file as it returns the line number on which the error occurred as well as the tag name.. 
-
This code shows you how ASP.NET simplifies information about the current browser into class properites. There are others but these are the most useful. . 
-
Just supply your database connection string and this code will give you a radio button list of all your SQL Server tables and will show their fields. . 
-
Finding out how to convert one type to another in .NET is tricky. Here is the answer to converting a string to a DateTime type.. 
-
This simple code will give you an array containing all files in a directory.. 
-
A simple example demonstrating how to dynamically add controls to a PlaceHolder control.. 
-
How to convert an array into a comma-delimited string with String.Join. 
-
How to convert a date and display it in the correct format for a given language.. 
-
If you want to compare the performance of two processes, you can use this code to measure and print out the time takes by each process. 
-
How to generate XML files in PHP using its new_child function.. 
-
An example of how to get metadata - such as all the databases on the server, all of their tables, and the corresponding field information for that table.. 
-
If you stack forms on top of each other on an HTML page, you will notice that there is an automatic blank space inserted. This code will eliminate that space which will give you more freedom when designing a page with many separate forms.. 
-
Demonstrates how to connect to a MySQL database with C#.. 
-
Since a connection cannot be used until a DataReader has been closed, it is quite often necessary to read the results of a DataReader into an array, then close the DataReader, then you can process the data in the array while you use the connection for something else. This shows you how.. 
-
This code shows you how to delete records with an SQL statement and get the number of records deleted returned back as an integer.. 
-
A simple wrapper class to combine the information contained in the .NET File and FileInfo classes.. 
-
You almost always want to have your form to be disabled as soon as the user pressed the submit button so that the user doesn't accidently submit the form twice. Here's how.. 
-
How to create PDF files from ASP.NET pages with Crystal Reports without using Visual Studio.NET. 