asp.net / Csharp Export to CSV from generic List
original post : http://www.joe-stevens.com/2009/08/03/generate-a-csv-from-a-generic-list-of-objects-using-reflection-and-extension-methods/ in my Utils.cs class : public static void...
View Articleckeditor + ckfinder how to install example.
1. download and unzip ckeditor. 2. download and unzip ckfinder. your view page : <textarea name="BodyText" id="editor1" ></textarea> <script src="/Assets/scripts/ckeditor.js"...
View Articlehow to resize, crop, save an image
http://www.switchonthecode.com/tutorials/csharp-tutorial-image-editing-saving-cropping-and-resizing
View ArticlenHibernate many to many with mapping table example
Set has many Skus Sku has many Sets DB table Set <-> Setskus <-> Skus mapping.HasManyToMany(m => m.Skus) .Table("SetSkus") .ParentKeyColumn("SetId") .ChildKeyColumn("SKUId")...
View ArticleIE9 ajax cache problem.
solve by adding this to the controller : [OutputCache(NoStore = true, Duration = 0, VaryByParam="*")] public class ApiController : BaseController {
View ArticleRex.Split for comma outside of double quotation
</pre> StringBuilder sb = new StringBuilder(); var projectlist = new List<Project>(); var reader = new StreamReader(System.IO.File.OpenRead(@"C:\projectallocations.csv")); while...
View ArticleASP.NET vs Node.js comparison
IIS -> Node.exe C# / VB -> Javascript Entity Framework / SQL Server -> MongoDB or other Databae ASP.NET Web Forms -> Express + EJS ASP.NET MVC/Razor -> Express + Jade/Razor ASP.NET Web...
View ArticleHello World Node.js on Visual Studio 2012
1. download and install Node.js http://nodejs.org/ 2. download and install Node.js Visual Studio extension http://nodejstools.codeplex.com/ 3. create new project -> Other Languages -> JavsScript...
View ArticleWeb API : List to csv file download
StringHelper.cs public static string CreateCSVTextFile<T>(List<T> data) { var properties = typeof(T).GetProperties(); var result = new StringBuilder(); var header = properties.Select(x...
View ArticleASP.NET CSV download 한글깨짐현상
public ActionResult Download() { var data = Encoding.UTF8.GetBytes("some data"); var result = Encoding.UTF8.GetPreamble().Concat(data).ToArray(); return File(result, "application/csv", "foo.csv"); }...
View Article