-
Modifying from MVC to WebAPI
I have to make a private personal site to work with Android / IPhone /Windows Phone natively. So I have to open the data from the site. But what is better then http://en.wikipedia.org/wiki/Eating_your_own_dog_food ? So I decide to do modifications for this The site was a simple listing of steps to solve a dangerous situation…
-
Export Data Table to Excel-Word-PDF-CSV-HTML-XML–Razor style
This tutorial show you how to export a DataTable to Excel,Word,CSV,HTML,PDF. GitHub Demo at https://github.com/ignatandrei/Export_Word_Excel_PDF_CSV_HTML The Nuget package is at http://www.nuget.org/packages/Exporter/ YouTube demo at http://youtu.be/jo0v8Asm3sE
-
MVC Export List of objects to Excel-Word-PDF-CSV-HTML-XML–Razor style
This is the second part of the demo of the Exporter in action – this time in MVC . It is a little more complicated,because you need to show to the exporter the full path where to put the generated file string filePathExport = Server.MapPath(“~/exports/a” + ExportBase.GetFileExtension((ExportToFormat)id)); All others are the same easy stuff -add…
-
Export to Word / Excel / PDF / CSV / HTML
I have made a NuGet package that exports a List to Word(2003/2007) / Excel(2003/2007) / PDF / CSV / HTML. It is made with Razor Templating – interpreted by WestWind Razor Engine ( source code at https://github.com/RickStrahl/Westwind.RazorHosting ) What it does it generates templates in Razor ( that can be freely modified after) and it…
-
SameId – skip
In the previous post I have show how two users can see each other if they are editing the same product ( in my example,product id 5) But not in all cases the users should be notified about each other – like in,let’s say,view product Id 5. In this case we have an attribute to…
-
Same object edited by 2 users–proactively notifying users
This is a practical example about how two users that comes on the same page will be notified one about other( after an idea of Adrian Petcu) . See the picture : With the NuGet package you can install in your application in this steps: To run : 1. install package from Nuget 2. in…
-
.tt files to maintain assembly version in sync
Let’s suppose you have a medium-big application and you have several dll-assemblies-component that the main application references( DAL,BLL). You have several deployments of the application at clients and,when a client,you must find each version of each assembly deployed. I have developed a simple .tt file to ensure that every component that you compile have the…
-
MVC Help View Razor
My passion for .tt files is great . T4MVC is the best example of what you can achieve with .tt files in MVC . Now,the problem: For each project you have a help file must be created. I mostly work with ASP.NET MVC projects – so I frequently have this problem. I have then created…
-
MVC Help View Razor v2
I have added to MVC Help View Razor the possibility to generate also .js files( was a suggestion from Alex Peta ) The code is on github Enjoy!
-
Attach to IIS and Stop Build– packages for better VS2012
If you work in VS2012 and want to debug your site in IIS with just CTRL+SHIFT+F1,then please see http://visualstudiogallery.msdn.microsoft.com/928617dc-d747-4577-bd19-8514d7efa8a7 If you work in VS2012 and want to stop build for other projects right after an error for a project,then please see http://visualstudiogallery.msdn.microsoft.com/a20bb171-0cab-453e-a64b-15197250f81f The source are found under https://github.com/ignatandrei ( For VS2010 I have 2…
I am ok , you are ok