This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arrayCollection = [“ABC”, “DEF”, “HIJ”]; | |
$.each(arrayCollection, function(index, value){ | |
console.log(“index : “,index, “ value :”, value); | |
}); | |
$(arrayCollection).each(function(index, value){ | |
console.log(“index : “,index, “ value :”, value); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Common function which is use to copy or make a clone of one object to another with datatype and value | |
public static void CopyProperties<TSelf, TSource>(this TSelf self, TSource source) | |
{ | |
try | |
{ | |
var sourceAllProperties = source.GetType().GetProperties(); | |
foreach (var sourceProperty in sourceAllProperties) | |
{ | |
var selfProperty = self.GetType().GetProperty(sourceProperty.Name); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using YourProject.Helpers; | |
namespace YourProject.Controllers | |
{ | |
public class HomeController : Controller | |
{ | |
public void SendTestMail1620() | |
{ | |
SendEmail.Send("EMAIL SUBJECT", "EMAIL TEMPLATE or CONTENT", "TO EMAIL"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script> | |
function functionName(){ | |
$.ajax({ | |
type: "POST", | |
url: "URL", | |
data: '{parameterName: "' + parameterValue + '"', | |
contentType: "application/json; charset=utf-8", | |
dataType: "json", | |
success: function (response) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public partial class _Default : System.Web.UI.Page | |
{ | |
protected void Page_Load(object sender, EventArgs e) | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
//install axios package using 'npm i axios' command | |
const axios = require('axios'); | |
class App extends Component { | |
constructor(props) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
isLoading: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import Header from './component/header'; | |
import Main from './containers/main'; | |
class App extends Component { | |
render() { | |
return ( | |
<React.Fragment> | |
<Header /> | |
<main className="container"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> | |
<script src="https://code.highcharts.com/highcharts.js"></script> | |
<script src="https://code.highcharts.com/highcharts-more.js"></script> | |
<script src="https://code.highcharts.com/modules/exporting.js"></script> | |
<script src="https://code.highcharts.com/highcharts.js"></script> | |
<script src="https://code.highcharts.com/highcharts-3d.js"></script> | |
<script src="https://code.highcharts.com/modules/export-data.js"></script> | |
<div id="container" style="height: 400px;width:500px"></></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//commoncode | |
public static CustomerModel GetData(int currentPage, string keyword) | |
{ | |
int maxRows = 10; | |
var customerModel = new CustomerModel(); | |
customerModel.Customers = new List<UserVm>(); | |
var counter = 0; | |
var sqlQuery = string.Empty; | |
if(string.IsNullOrEmpty(keyword)) | |
{ |
OlderNewer