Skip to main content

Posts

Showing posts from November, 2016

SignalR Examples

ChatHUBS.cs 

Code publicvoid Send(string name, string message) {  // Call the broadcastMessage method to update clients.    Clients.All.broadcastMessage(name, message);  }  Startup.cs

publicvoid Configuration(IAppBuilder app)  {  // For more information on how to configure your application, visit http://go.microsoft.com/fwlink/?LinkID=316888    app.MapSignalR();  }  Htmlpage

<!DOCTYPE html>

AngularJs ng-repeat Example

Angular js URL: <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>   Html tag:
<div ng-app="myApp" ng-controller="myCntrl">          <table>              <thead>                  <tr>                      <th>                          Emp Code.                      </th>                      <th>                          Employee Name                      </th>                      <th>                          Pan No                      </th>