Latest posts on tagged on "CSharp"

Knockout js tutorial with asp.net mvc

13 November 2016

In this article, I will show you a knockout Ajax example, with curd operations using jQuery. Knockout js is a free open source library. It is small and lightweight JavaScript Library. I have built a web form to display records and do curd operations (insert, update and delete) using Northwind Database customer table.

How to create custom error page in asp.net MVC?

8 November 2016

In this article, I will show you how to add custom error page in web config using asp.net MVC. If application got any error you can invoke asp.net 404 page.

Datalist autocomplete from database in jQuery

7 November 2016

In this article I will show you how to use datalist to create jQuery autocomplete multiple values from database. You should make an Ajax call to server method GetCompanyList() and fetch company name and city...

Display image for asp.net mvc form validation using css class

7 November 2016

In this article, I will show you custom validation in mvc, displaying image using css class for error message. The field-validation-error css class are applied to the ValidationMessageFor() and Validation-Summary-errors css are applied to the ValidationSummary().

Mvc-show error message along with image

6 November 2016

In this article, I will show you how to display images along with Validation message using dataannotations in mvc asp.net c#.

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.