Latest posts on tagged on "MVC"

How to return an ActionResult string in MVC?

22 October 2016

In this article, I will show to how to return a string result using ActionResult in mvc 4. You can achieve this by ContentResult to return a string. It will create content result object by using a string.

TextArea value count in jQuery- character limit indicator

20 October 2016

In this article, I will show you textarea value character count in jQuery. When user type characters in textarea it will indicate the character limit below that using the jQuery keyup event.

Data annotation maxlength attribute (c# example)

19 October 2016

In this example, I will show you to apply maxLength attribute to a string property in a class. You can set the maximum value for the property using data annotation validation property maxLength attribute.

How to use date plugin jQuery timeago example?

16 October 2016

In this example, I will show you how to implement timeago jQuery plugin in a MVC project. It makes easy automatically updating datetime like 5 minutes or 15 hours ago or 1 day ago etc…

[Solved] The associated metadata type for type object contains the following unknown properties or fields.

13 October 2016

I got the following error while running the application, later I found a solution for that. This is due the partial class properties are not found in the main class. I removed the column field’s likesCount and OutputHtml from the table and updating the model using entity framework. But I haven’t removed the properties from the partial class.