Today I will talk about the " System.IO.FileSystemWatcher". It allows you to be notified when a file or directory (folder) has been created, renamed, changed or deleted. You can even sit and wait for such an activity to take place. Ok, Let me show you how to use this class. 1. Create a new object of FileSystemWatcher. System.IO.FileSystemWatcher fswXmlFileWatcher = new System.IO.FileSystemWatcher(); this.fswXmlFileWatcher.EnableRaisingEvents...>
Read more...
1/30/2008 1:37:00 AM
Published by
FengLiN
Category
C Sharp(C#)
Views (1240)
The CorssArticle module is basically an extension of the efficionconsulting articles module 3.2beta (http://www.efficionconsulting.com/) . thanks for the great job of David O'Leary(the author of efficionconsulting articles module). And this version also includes some changes from Shengfu Mao. I also had made some changes into it. :)
1. Enable rich text box in IE 7.
2. correct the sql install sripts.
The below is added by Shengfy...>
Read more...
1/26/2008 8:27:50 AM
Published by
FengLiN
Category
DNN Skins & Modules
Views (1813)
I want to export dataset data into excel with number, date format support, but I do not want to install Excel in my server. I donot have the licences. here is the code for you. the following code use xml to handle the excel.
Download Source Code here
Imports Microsoft.VisualBasic
Imports System.Data
Imports System.IO
Public Class WorkBookEngine
Public Sub CreateWorkbook(ByVal dt As DataTable, ByVal Filename...>
Read more...
1/25/2008 2:25:14 AM
Published by
FengLiN
Category
ASP.NET
Views (3018)
You've got an encoding issue. The default encoding for StreamWriter is UTF8NoBOM. That encoding should properly encode Unicode characters. Your problem is likely located in the app you use to read the file. Maybe you can egg it into interpreting the file properly if it contains a BOM (byte order mark). Construct it like this:
new System.IO.StreamWriter(fileName, Encoding.UTF8);>
Read more...
1/25/2008 2:21:00 AM
Published by
FengLiN
Category
ASP.NET
Views (1972)