Rename a File on the Disk or Local File System using C#
The following code will rename a file called temp.txt to tempnew.txt using System.IO;read more
View ArticleString Replace Function in C#
The following code will replace a character or a word with some other character or a word. This is accomplished by the replace function in C#. using System; using System.Text.RegularExpressions;...
View ArticleObtain Values of Query String using C#
You can pass variables via query string from one page to another. The page it is passed to should then recieve that varibale and to use it. Following is an example on how to pass the variable.read more
View ArticleCreate a Checkbox List Web Control Using Asp.Net & C#
The CheckBoxList control creates a multiselection check box group. To specify items that you want to appear in the CheckBoxList control, place a ListItem element for each entry between the opening and...
View ArticleSend Email Attachments from a Form using Asp.Net and C#
In order to send email attachements from a form, we first upload the file to a temporary location on the server. We then attach the file to the email message, execute the mail message to sent he email...
View ArticleTry Catch Statements for Error Handling in Asp.Net & C#
Error handling in Classic ASP was not the best. ASP.NET has a new error handling mechanism which was already in other languages such as C, C++ and JAVA. It is called the try...catch mechanism, which is...
View Article