-
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…
-
Understanding how to create and Install Windows Services in C#.Net
Windows Service in C#: This article is about how to create a Windows Service in C# .net using Visual Studio. Windows Services: Windows services are the executable applications which run in the background and doesn’t contain any user interface. Windows services can be scheduled to run automatically whenever operating system boots or can be started/stopped/paused…
-
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…
-
How to Set Up Selenium WebDriver in Visual Studio Enterprise 2015?
Pre-requisite : Visual Studio Enterprise 2015 application should be installed into the system. Create the new project in Visual Studio : Select New option from File menu and click on Project. Refer Fig.1. Fig.1 On New Project windows popup > Select Visual C# > Windows > Console Application > Enter Name and Location and click on OK button. Refer Fig.2. Fig.2…
-
Custom Control in WPF
File Upload Custom Control in WPF This article is about Custom control in WPF, Custom controls are also the user controls, but there is some difference between them. UserControl (Composition) Composes multiple existing controls into a reusable “group” Consists of a XAML and a code behind file Cannot be styled/templated Derives from UserControl CustomControl (Extending…
-
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…
-
Using XMPP and Openfire server in ASP.NET C# – Part -2
Roster in XMPP Roster are the contacts of user (contact list). Roster Handlers in AgsXmpp Let us discuss, the handlers other than the mentioned in part -1 i.e., (loggedin, loginfailed) are mentioned below · OnRosterItem · OnRosterEnd · OnRosterStart Let us recap part -1 (http://www.ecanarys.com/blog-entry/using-xmpp-and-openfire-server-aspnet-c-part-1 ) login part (we need here that code…
-
SQL injection attack and prevention using stored procedure
What is SQL Injection Attack? SQL Injection is one of the many web attack mechanisms (hacking technique) used by hackers to steal data from organizations. It is perhaps one of the most common application layer attack techniques. Improper coding of your web applications that allows hacker to inject SQL commands into say a login form…
-
Building an Outlook 2010 Add In Using C#.NET With Visual Studio 2010
How to build an outlook 2010 Add In using C#.Net and Visual Studio 2010? In this post, I’ll take you through the steps required to build an outlook 2010 plugin using C#.Net with visual studio 2010. This post includes creating custom task pane, adding a new context menu item with the outlook context menu and adding…