Developer's Talk

Technology Discussion
The new packaging and deployment stuff for SharePoint 2010 is certainly a lot better than VSeWSS but there are a few things missing, such as the ability to add a WCF service as a project item. One of these days I’ll build a template to do it but for now here’s a quick step by step guide.

Add SVC file to Layouts folder
[More]


Develop Custom Workflow Activity for SharePoint 2010 Workflow
In this article, I’d be discussing the steps to create a custom workflow activity for SharePoint 2010. The need for custom workflow activity arises, when the out-of-box workflow activities do not suffice our requirement. The functionality of developing a custom activity for SharePoint 2010 Workflow is not a new feature in SharePoint 2010. This was available in SharePoint 2007, which is now continued to SharePoint 2010. Once the custom workflow activity is created, it can be made available for use inside SharePoint Designer 2010.

[More]


There are many ways to schedule a task on a web server. For example, you can use Windows Task Scheduler and SQL Server Agent. This application is unique in that you can:

Schedule jobs using a web browser.
Extend the scheduling application to include your own features.
Using the code

This application has three components:

A Windows Service that will run a job (DOS command text).
A Web Application that will let you schedule a job.
MS SQL Server database Stored Procedure to get the list of jobs that need to run.
Job and schedule information are stored in a MS SQL Server database. The web application lets
[More]


This article is about to introduce a web based job scheduler where you can add and manage your daily or monthly administration or report sending tasks. There are some other available approaches to do this, but I found none of them fully satisfying so I decided to write my own job scheduler. For one hand you can use Windows Task Scheduler for running some scripts and the other hand you can use MS SQL Server Agent job scheduler to execute some of your stored procedures to handle your database maintance jobs. This project is intends to combine this two approaches so it can be handled through an easily manageable ASP.NET page.

[More]


Introduction
How can you change the page size of a grid view based on screen height? I never thought of this until I came across this requirement in one of my projects. After some thinking, was able to get it working. There are few pre conditions to it. But, it is workable in most of the real time projects. Below section will try to cover the how to implement it.

[More]


Simple function to convert Hex to Bin,Bin to Hex, Dec to Bin, Bin to Dec,Hex to Dec, Dec to Hex in C#
[More]


You probably heard about Win8 today.

The short story is that they showed a touch-centric shell on top of Win7. Microsoft want us to start building touch-centric apps for that shell using HTML5.

I don’t have any doubts that existing apps will still run with no changes in the old shell.

The main question from a developer point of view is if the only way to write apps for the new shell will be HTML5 or not. IE will keep supporting Silverlight/WPF/Flash, but those won’t be apps in the new shell but apps inside IE.

For me it’s hard to believe that they won’t support a Silverlight flavor for the shell, but I don’t know the answer.

In any case, it’s clear that with this strategy Microsoft is accepting that they’ve lost the war for the developers’ mind with .NET for client applications. They are still fighting it in the server, but not in the client. Silverlight was the last proprietary technology MS used to try to achieve that, and they failed when “multiplatform” changed from Windows-OSX to Windows-OSX-iOS-Android-AndMarketPlaceRulesThatTheyCannotControl.

They need developers writing apps for Windows. Most of client-side developers today are building HTML apps, another big number are writing iOS and Android apps. Learning XAML technologies is difficult and unappealing for them. As they are losing the battle with iOS/Android, going HTML could be their only option if they want to regain the developer’s love.

The tablets with Windows 8 will be very attractive for Windows users, and it’s the OS with more users on Earth. It wouldn’t be surprising if some developers start targeting that as the main platform, in particular if building those apps is easy. I don’t know if there will be a good story for sharing code between web and native apps, but I guess it will. This means it will be much cheaper for developers to support both platforms (tablet win apps and web).

[More]


Generally some tasks are required to be scheduled or dependent on the time. So this can be performed easily using windows service. Here are the steps to create windows service quickly.
1. File-> New Project -> Visual C# -> Windows -> Windows Services
Give Project Name and location.

2. Now Right Click -> View code
[More]


WcfService2.zip (49.84 kb) Introduction Windows Communication Foundation (WCF) is an extension of the .NET framework to build and run connected systems. Windows Communication Foundation provides a unified framework for building secure and reliable t... [More]


Struct cannot have an explicit parameterless constructor, only the implicit one, that initializes all members to their default. Struct won't allow destructor in .Net.

Although the CLR allows it, C# does not allow structs to have a default parameterless constructor. The reason is that, for a value type, compilers by default neither generate a default constructor, nor do they generate a call to the default constructor. So, even if you happened to define a default constructor, it will not be called and that will only confuse you. To avoid such problems, the C# compiler disallows definition of a default constructor by the user. And because it doesn't generate a default constructor, you can't initialize fields when defining them.

The default constructor is implicitly defined by C# and you can't implement the default constructor yourself. The default constructor initializes all struct fields to default values. i.e. integrals are 0, floating points are 0.0, and booleans are false. If you need custom constructor overloads, you can add new constructors, as long as they have one or more parameters.

[More]


Register | Login

Advertisement

Advertisement

Widget BlogAnalytics not found.

Execution of request failed: https://www.google.com/analytics/feeds/accounts/defaultX

Sign in