c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android

Xml dropdownlist bind in asp.net?

| | Category: c# .net

In this example, I will show you to bind dropdownlist with an xml file using ReadXml() method. In order to read data from cities.xml file into a dataset from the specified path using Server.MapPath.

How to prevent items duplication for dropdownlist in asp.net?

| | Category: c# .net

In this example, I used dropdownlist and button, I binded dropdownlist with countries name on the page load.

C sharp partial class

| | Category: c# .net

When working with large projects, partial class splits the class for multiple programmers to work on it at the same time.

If cdn down google hosted jQuery fails?

| | Category: JQuery

In some countries, google, hosted query might be banned we must want to prevent errors. The following code will check jQuery is loaded or not. It is not loaded than jQuery script will be loaded from our web server.

How to add row number dynamically to jQuery datatable?

| | Category: JQuery

In this example, I will show you to add a row number dynamically to jQuery datatable.I used jQuery datatable for binding grid, before I was struggled with adding row numbers in the first column to the table. Now I fixed the issue; it is working fine.

How to update nuget package manager?

| | Category: asp.net MVC

Go to tool menu in visual studio and select Library package manager and click Package manager console. If you want to check whether new updates are available for the installed package

[A]System.Web.WebPages.Razor. Configuration.HostSection cannot be cast to [B]System.Web.WebPages.Razor.Configuration. HostSection.

| | Category: asp.net MVC

I found the cause of this error that the web.config was referencing System.Web.WebPages.Razor, version=2.0.0.0. Later I changed it to System.Web.WebPages.Razor, version=3.0.0.0 it works fine problem was resolved.

How to create dynamic html element in jQuery?

| | Category: JQuery

We can insert new element in to the DOM using appentTo() method. To perform dynamic html generation of anchor tag coupled with .attr() and appentTo() method.

Sqrt math function in jQuery?

| | Category: JQuery

In this example I will show you to perform square root for the given numbers using Sqrt math function in jQuery. I stored list of numbers in an array variable and loop each element in the array and perform square root from its value.$.map(). The $.map() method will takes the array and callback method as argument.

JQuery combine arrays

| | Category: JQuery

In this example I will show you to combine arrays in jQuery using .merger method. It takes the second array elements and appends with the first array.

Page 54 of 82