Posts

Web api to jquery call

function GetAllContacts() {             $.ajax({                 url: 'api/ContactsAPI',                 type: 'GET',                 dataType: 'json',                 success: function (data) {                     BindContacts(data);                 },                 error: function (error) {                     debugger;                     alert('Error Loading Contacts');                 }             });         }         function GetContactForEd...

Jquery pagination without any plugin

Image
1.Pagination.html <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Simple pagination</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="initial-scale=1"> <link rel="stylesheet" href="jquerypagination.css" media="screen" /> </head> <body> <div id="sixth-container"> <table> <tbody> <!--http://www.marijn.org/everything-is-4/counting-0-to-100/english/--> <tr><td>One</td></tr> <tr><td>Two</td></tr> <tr><td>Three</td></tr> <tr><td>Four</td></tr> <tr><td>Five</td></tr> <tr><td>Six</td></tr> <tr><td>Seven</td></tr> ...

React Native list View

import React, { Component } from 'react'; import {     Button,     StyleSheet,     Text,     images,     ListView,     ActivityIndicator,     View, } from 'react-native'; export default class Profile extends React.Component {     constructor(props) {         super(props);         this.state = {             dataSource: new ListView.DataSource({                 rowHasChanged: (row1, row2) => row1 !== row2,             }),             isLoding: false,         };     }     componentDidMount() {         fetch("http://localhost:53554/api/TaskApi/GetTasks?username=kathiravalan421")             .then((response) => response.json())...

Private Variable Access Example In C#

Image
using System; namespace  Access_Private_Member {     class Program     {         static void Main(string[] args)         {             ExampleOne one = new ExampleOne();         }     }     public class private_class     {         private string message = "You May Access Me Also";     }     public class ExampleOne : private_class     {         public ExampleOne()         {             System.Reflection.FieldInfo receivedObject = typeof(private_class).GetFields(System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)[0];             var obj = receivedObject.GetValue(this);             Console.WriteLine("Access the private...