-
Using XMPP and Openfire server in ASP.NET C# – Part -1
Extensible Messaging and Presence Protocol (XMPP) The Extensible Messaging and Presence Protocol (XMPP) is a protocol for streaming XML elements in order to exchange messages and presence information. The XMPP Core uses main features like XML Streams TLS SASL IM The basic functionality expected of XMPP is instant messaging (IM) and for user presence in…
-
ASP .Net MVC Error Logging Using Elmah
ASP .Net MVC Error Logging Using Google Elmah Introduction: ELMAH is one of the popular Library to logging unhandled errors provided by Google .It’s an application wide error logging facility which can be dynamically plugged. You don’t need to recompile the code. It’s pluggable. Below I will show you how to log your errors using…
-
General guidelines to be followed by .Net Developers to write optimized code.
Looping Please avoid if else conditions .Instead use switch statements. Avoid For-Each for iteration in performance critical code paths, instead use FOR loops. If you test for multiple exit conditions, begin the expression with the one most likely to allow you to exit. Avoid calling properties inside within loops. If the methods called inside the…
-
Token Based Authentication for Web API’s
Securing ASP.NET Web API using Custom Token Based Authentication Providing a security to the Web API’s is important so that we can restrict the users to access to it. We can provide the security in two different ways: Basic authentication. Token based authentication. In this blog, we will discuss how we can implement token based…
-
ASP.NET: Audit Trail Implementation using Entity Framework
When you are working with certain projects which involves the Customer records, you might need to track of each and every addition/change made to system along with who create, modify and delete the records. Here I am going to show you how to implement the Audit Trail using Entity Framework in ASP.NET. Entity Framework keeps…
-
Create custom project templates in Visual Studio
Visual studio installation comes with the various predefined project templates, and we can use one of these templates (like console application, class library, ASP.NET web application, etc) to create a new project. We can create custom project templates and have they appear in create new project dialog under the project selection templates. Here I would…
-
Part 2 of KnockOut.js in Asp.Net
Computed Observables: Functions which are dependent on one or more observables and will automatically update whenever any of the dependencies altered. Eg: If we want to display full name based on first name and last name then Step 1: Declare view model function AppViewModel() { this.firstName = ko.observable(‘Naresh’); this.lastName = ko.observable('Reddy'); } Step…
-
Introduction on SignalR
Introduction on SignalR Real–Time Web Application The real-time web is a set of technologies that enable users to receive information as soon as it is published by its authors, rather than requiring that they or their software check a source periodically for updates. Examples of Real–Time Web Application Development News feed and Notifications in Facebook…
-
How to upload documents to SharePoint 2013
Introduction SharePoint is a browser-based collaboration, content management, and extensible platform from Microsoft. The latest release of the product is SharePoint 2013. In this article I will explain about one of the frameworks used for development in SharePoint 2013, Client-side object model (CSOM). I am going to add a document through code to a SharePoint…
-
Introduction to KnockOut.Js in Asp.Net
What is KnockOut.Js? Knockout.Js (simply KO) is a powerful JavaScript library which allows developers to bind DOM elements with any data model like array, Json etc. It built up on two way data binding between UI and data model i.e. if any changes made to data model are affected to UI as well as any…