Category: .NET
-
ASP.NET MVC–find error
I am moderator and a frequent answerer at forums.asp.net . Mostly of time the error is in thinking that database connection errors belong to MVC – or other things that are part of the .NET framework,not of MVC . However,I must write here the most confusing problem that I have encountered: <start quoting> “I have…
-
Foursquare–part 4–conclusions
Part 1: beginning using API: http://msprogrammer.serviciipeweb.ro/2014/01/27/foursquarepart-1-of-4/ Part 2: Trying PC version: http://msprogrammer.serviciipeweb.ro/2014/02/16/foursquarepart-2-of-4/ Part 3: Improving PC version: http://msprogrammer.serviciipeweb.ro/2014/02/24/foursquarepart-3-of-4/ Part 4: conclusions( this blog post) First conclusion : web is media of choice . The programmers makes API easier for connecting via Web,not via every device. ( although FourSquare have developed native classes for IOS…
-
Solving “No parameterless constructor defined for type of ‘System.String’.”
TL;DR If you have the problem No parameterless constructor defined for type of ‘System.String’! just add the DeserializeObject and InterceptError functions,add this 2 lines: watch the debug window and you will see the problems marked with !!! ( See also video at http://youtu.be/7oZ37pnSNtM) Long story: I wanted to do a tutorial for obtaining data from…
-
Foursquare–part 1 of 4
I have decided to log my daily routine from FourSquare . I decided to make a Web application and a desktop application ( console,to be easiear) . As a good application,4Sq have an API at https://developer.foursquare.com/ . I suggest you to start with conecting to 4Sq,https://developer.foursquare.com/overview/auth . For WebServers,you will redirect the user to an…
-
Javascript MVVM and ASP.NET MVC
TL;DR; The purpose of this article is to show is how to transmit data to edit( create,update,delete) from a MVVM array to an ASP.NET MVC action in order for the action to bind to an IEnumerable/Array/List of objects. We will make also a javascript function that can be re-use across multiple MVVM frameworks to transmit…
-
Dependency injection choice
For a personal pet project I have needed a DI framework . It relates to WebApi – I need to switch the provider for web api between a console and web – mostly authentication / logging different. Some years ago was only StructureMap – but now there are a lot. So I started to investigate…
-
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 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!