How to use html.ValidationMessageFor

It was silly simple…..I just didn’t add the ErrorMessage field as part of the [Required] decorator. For example: Now, if a user either doesn’t enter anything in the name fields, or enters something over 30 characters, the Post method doesn’t get executed and the user gets a little message telling them what’s wrong.

Convert JSON String To C# Object

It looks like you’re trying to deserialize to a raw object. You could create a Class that represents the object that you’re converting to. This would be most useful in cases where you’re dealing with larger objects or JSON Strings. For instance: Then your deserialization code would be: More information can be found in this … Read more

Unity – Gameobject look at mouse

I’m not sure If I understand what you are trying to do. If you are trying to do something similar to the game “Dead Nation”, then I would suggest something like this: MouseLook.cs If you want the camera to move and rotate along with the player then just make the camera a child of the … Read more

How can I export data to an Excel file

MS provides the OpenXML SDK V 2.5 – see https://msdn.microsoft.com/en-us/library/bb448854(v=office.15).aspx This can read+write MS Office files (including Excel)… Another option see http://www.codeproject.com/KB/office/OpenXML.aspx IF you need more like rendering, formulas etc. then there are different commercial libraries like Aspose and Flexcel…

Unity “The associated script can not be loaded” and “Win32Exception: The system cannot find the file specified”

Unity apparently can’t handle apostrophes (single-quote ‘) in the directory name of the editor. You need to get rid of the apostrophe in your directory name. Once you make that change, Unity should be able to build the scripts as intended. Edit: This has been fixed in more recent versions – see https://issuetracker.unity3d.com/issues/scripts-do-not-get-compiled-if-the-unity-editor-path-contains-apostrophes for reference