Posts filed under: C#

.NET Productivity Improvements

In this brief overview, we present some of the new productivity features to come for Microsoft .NET in Visual Studio 2017, including improvements in debugging, unit testing, live code analysis, and IntelliSense....
Continue Reading →

What’s new in .Net Core 1.1 ?

Microsoft .NET Core 1.1 includes support for additional Linux distributions, has many updates, and is the first Current release. Watch a quick command-line interface (CLI) demo on Linux of how to change your development track from 1.0 to 1.1. Then...
Continue Reading →

NDC London 11-15 Jan 2016

The lines are getting increasingly blurred between the web and native apps. Operating systems are able to execute JavaScript from a remote web server, web apps are able to reach into your documents and fiddle around with them, you can...
Continue Reading →

Paging Through a Query Result

Paging through a query result is the process of returning the results of a query in smaller subsets of data, or pages. This is a common practice for displaying results to a user in small, easy-to-manage chunks. The DataAdapter provides a facility...
Continue Reading →

Retrieving Data Using a DataReader

Retrieving data using a DataReader involves creating an instance of the Command object and then creating a DataReader by calling Command.ExecuteReader to retrieve rows from a data source. The following example illustrates using a DataReader where readerrepresents a valid DataReader and command represents a valid Command object. reader = command.ExecuteReader(); You use the Read method...
Continue Reading →

Entity Framework Development Workflows

  Find out about the different ways you can use Entity Framework to access a relational database from your .NET application. Presented By: Rowan Miller...
Continue Reading →

C# detect Chrome Browser

public static bool IsChrome(HttpRequest Request) {       try      {             return (Request.UserAgent.Contains("Chrome"));      }      catch (Exception exp)      {           return false;    ...
Continue Reading →

Visual Studio 2012 – Shortcuts

Analyze Navigate Backward Shift+Alt+3 Navigate Forward Shift+Alt+4 Startwith Current Project Shift+Alt+F5 Architecture New Diagram Ctrl+\, Ctrl+N Architecture Context Menus Add Node Ins Both Dependencies B Incoming Dependencies I Outgoing Dependencies O New Comment Ctrl+Shift+K Ctrl+E, C Remove Del Rename F2...
Continue Reading →

Check if a file exist with C# using SharePoint Client Object Modal

Hi Guys, if you need  to test using C# if a file exist in a certain SharePoint document library ? You can use SharePoint Client Object Modal. Here, I wrote a C# console application which uses behind the scene the...
Continue Reading →

ASP.net move to anchor location programatically

Hi guys,   If you also have the requirement to programatically go to an anchor location, you can use the following line of code I had to use this, to go down in the page after the event page submit, to...
Continue Reading →

Test SMTP Server for ASP.net Dev machines

Hi Guys, If you need to test the email sending process from your asp.net application in local dev boxes (i.e. where you can’t connect to an smtp server), don’t worry, there is a fix for this. First we need to...
Continue Reading →

From a C# Application, upload to SharePoint using a Web Service

Hi Guys, In this article we will review how to upload files to SharePoint using the default SharePoint Web service http://site/_vti_bin/copy.asmx. For this example, we will use a C# console application, to accomplish this task you need to : 1-...
Continue Reading →

Collab 365

Getting READY with lot of coffee for the big night :p Join me at : https://collab365.conferencehosts.com/ ...
Continue Reading →

Calculate average file size for a folder with C#

If you need to have an estimation of the average file size of a folder containing couple of files Easy with C#   class Program var avg = dirfiles verage(); riteLine("The Average file size is {0} MB",...
Continue Reading →

70-486 Preparation

Preparation guide for the M​CSD - Exam 70-486: Developing ASP If you haven’t taken the​M​CSD - Exam 70-487 - Developing Windows Azure and Web Services​exam yet, check out m​y 70-487 guide.​ ...
Continue Reading →

ASP.net handler for images

If you need to have a dynamic url which is supposed to read files from specific location and return the feed to the browser, especially in the case where the end users are not supposed to have access to the...
Continue Reading →

Run a process as Administrator with C# programmatically

If you need to run external program from C# code with Administrator privileges,  this code might help. ProcessStartInfo info = new ProcessStartInfo("Process.exe"); info rguments = Application info info Process ...
Continue Reading →
Show Buttons
Hide Buttons