Posts filed under: C#

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 →
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 →
Getting READY with lot of coffee for the big night :p Join me at : https://collab365.conferencehosts.com/ ...
Continue Reading →
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 →
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 →
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 →
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 →
1- Client side State management option Recommended usage View state Use when you need to store small amounts of information for a page that will post back to itself Control state State management option Application state Session state ...
Continue Reading →
View state Control state Application state Session state View State ET State Management Recommendations. Control State ASP ET State Management Recommendations. ET State Management Recommendations. ET State Management Recommendations. ASP ASP ASP ...
Continue Reading →
Sometimes you may need to look at the command, that's created from your i.e LINQ query and sent to database var q = from m in e.master You can cast the q into ObjectQuery and use the ToTraceString method to see the...
Continue Reading →
using System; using System O; using System O ompression; namespace ConsoleApplication string startPath = @"c:\example\start"; string...
Continue Reading →
ET SignalR 2 and ASP ET MVC 5 Adding the SignalR library to an MVC 5 application. ET MVC 5 application, add the SignalR library, and create the chat application. In the New ASP spNet ignalR spNet ignalR; SignalR Hubs ...
Continue Reading →
Problems with ASP Session State ASP session state is machine specific ET session state. ASP ET Session State ASP ASP If session state is in a separate process, the ASP ASP ET Session State Session state settings in ASP ASP...
Continue Reading →
Here is a usefull class if you want to run under a specific user account, for my scenario, I tried to access a network shared drive in my SharePoint code, so definitely needed this class. Starts the impersonation with the...
Continue Reading →
"When should I use a ViewBag vs ViewData vs Both the ViewData and ViewBag objects work well in the following scenarios: ViewData & ViewBag objects ViewData ViewBag ViewBag ...
Continue Reading →
Visual Studio 2013 Update 3 RTM is now available for download Dmitry Lyalin joins Robert to get you up to speed on what is new in this release Learn more with the Visual Studio 2013 Update 3 RTM release notes...
Continue Reading →
Generally, It is required to install sql server database with visual studio setup Here are the steps to install sql server database with setup using custom action. In Solution Explorer, select the project Step2: Add installer class O; ata ...
Continue Reading →
Visual Studio Online Advanced Visual Studio Online Professional Visual Studio Online Basic Integration with popular development tools, including Visual Studio, Eclipse, and Xcode Compare all Visual Studio products ...
Continue Reading →
Exam Ref 70-486: Developing ASP ET MVC 4 Web Applications ...
Continue Reading →
ET Framework since ET 4.0 ET MVC application. To get started, create a new ASP public class ValidationResult using System using System ext using System using System ext using System vc; vc; vc; ...
Continue Reading →
Show Buttons
Hide Buttons