Blogs updates notification on twitter

Hi

 

After announcing the updates of the blog as SMS Alert (Only in INDIA with the help of Google SMS channel), I saw a good number of people using the service.  If you are India and want to get my blogs (Title only) as an SMS whenever new content is posted, you can also subscribe to the service.

 

Continued...

Preview 5 of Managed Extensible Framework released

Hi

 

A few days ago MEF Preview 5 was released on codeplex with all the source code, docs, test and samples developers need to get started.  MEF will be a core part of .NET Framework 4.0, These preview releases available so folks can use MEF on Top of Dot Net framework 3.5.

 

You can read more about it here.

http://codebetter.com/blogs/glenn.block/archive/2009/04/11/mef-preview-5-changes-and-enhancements.aspx

 

Vikram


Adding a new control with the help of Page.ParseControl method

Hi,

 

Sometimes we might have a requirement where by we need to parse the tags and create some controls with that in asp.net.  Think of a situation where you do not what type of control will be create. You need to pass the control from an xml file/ or database. There can be many properties to the control, which will be passed. Passing these properties individually can be difficult, because you do not the kind of control itself.

 

In this kind of situation if we can pass the full formatted control tag as a string which will be parsed and updated then it can be great as we can easily apply all the property we want to apply.

 

Continued...

goto keyword in C Sharp and its use to break nested loop
Hi,

 

Two days back, while discussing with a friend came a small interesting (programming) situation where he wanted to stop (break) a loop which was inside another loop.

 

You can think of the situation as he was first looping through all the rows in a grid view and then in the entire column in the grid view. Now he was trying to look into the text of each cell, and if the text matched a given value, he needed to break from both the loop and execute the statement after the loop.

 

His first idea was to use a flag which will be checked in the outer loop every time to see if the value has been found in the inner loop. The code would be something like below.

Continued...

Adding and removing user from Sharepoint causes incremental crawl to take a long time

Hi,

 

In the last week, I had a few bad days with Sharepoint Incremental crawl. Would Like to share the problem and reason of the problem with you all.

 

We have a Sharepoint application, which contains a huge amount of data. The main functionality of the application is to search the data, with the help of the custom search page. The availability of data is very important and it’s a must that data added, updated should be available must be available within 2 minutes of update.

 

Continued...

Microsoft releases Final CTP of the Visual Studio Extension for Sharepoint

Hi

 

Microsoft has released the last and final version of CTP for the Visual studio Extension for Visual Studio 2008. you can hear more about the release here

 

http://blogs.msdn.com/pandrew/archive/2009/03/19/visual-studio-2008-extensions-for-sharepoint-vsewss-1-3-addresses-all-common-sharepoint-developer-requests.aspx

 

Continued...

MVC 1.0 release, Silverlight 3.0 beta 1 and Expression Blend 3.0 preview released with many other tools by Microsoft

Hi,

 

With the start of MIX Microsoft has release a bunch of developer productive tools. I am trying to put all in this post with links to the respective page.

 

Microsoft has launched the release version of MVC 1.0. You can download it right now here.  Also check out Phil Haack’s post on the release. 

 

MSDN Documentation for MVC is also now available and the following link http://go.microsoft.com/fwlink/?LinkId=145989

Continued...

Microsoft Ajax 4.0 preview available

Hi,

The Microsoft Ajax team made the fourth preview of the 4.0 version available on CodePlex. This is an important release because it enables the full client data story, complete with the ability to get changes back to the server automatically.

Here’s a quick recap of some of the available features:

Continued...

Scheduling a call to URL using windows scheduler

Hi

 

I have used windows scheduler a lot of time while working with Sharepoint. Most of the time this was used to run some console application (which would work in off peak time to do some data management). But few days back, I had a requirement where by I wanted to schedule a windows scheduler to make a call to the page. The page would internally do some work on the load event.

 

But windows scheduler would not take the URL or a shortcut to the URL as a way to be scheduled. It needs an application/ batch file etc to be scheduled. So I had to think of a different way to either schedule it in windows scheduler or some other way to schedule the task of calling the web page.

Continued...

Resource kit for creating web 2.0 Application and services from Microsoft called KOBE

Hi

 

Microsoft has come with some resource kit for planning, Architecting implementing Web 2.0 applications and also services. The resource kit is named Kobe.

 

You can visit the same from the following link.

Continued...

JavaScript code to add bookmark of the site

Hi,

 

Although the bookmarking techniques in the browser have improved a lot, but still many a times we want to provide a simple way to the user in the web site itself to Bookmark the site. This can be done very simply with the help of the JavaScript.

 

One problem though is there that implementation of this functionality is different for different browser. Below piece of code has been testing in both firefox and Internet explorer to work properly.

 

function addToBookMarks()
{

Continued...

Secure code event on 28 March at Kolkata

Hi,

 

Our local user group KolkataNet is organizing a half day event on 28th March (9:45 Am to 3:30 pm) to discover the best techniques and practices for security on Microsoft technologies and platforms.

 

At this half-day event, the focus will be the one topic that impacts all of us: securing your code. A number of guest speakers will join us to help us determine the best methods for keeping your applications safe, including employees from Microsoft!

 

Continued...

Using HttpWebRequest class to make web request against Http server

Hi,

 

Many a times comes a situation, where we have to make call/request to another page through http protocol. The requirement might come when you want to fetch data from another page through http protocol, or just make a request to start some process which gets started on the page request itself.

 

Continued...

Programmatically starting and incremental crawl in Sharepoint SSP

Hi,

 

When working is Sharepoint we have to work with Sharepoint search. Search point search works with indexed data. The data is indexed with the help of the Sharepoint crawl. For crawling purpose, we normally make one full crawl and after that incremental crawl at different interval based on the requirement.

 

Continued...

Free sharepoint traing at MyRampup
 

Hi,

 

I wanted to let you all know that the Ramp Up program (www.MyRampUp.com)  has just launched a brand-new learning track: Sharepoint for Developers, Part 2.

 

Continued...

10% discount of Microsoft Certification exams

Hi,

Many of you have written to (by mail) on which certification will be good for me etc… If any one of you people reading this are interested in certifying in Microsoft Certification, Then I have a good offer for you.

From now till March 31, 2009, you can use this Promotion Code to obtain a Microsoft Certification Exam Voucher Code at a 10% discount and free retake offer. You are free to pass on this information to any friend interested in giving Microsoft exams.

Continued...

Creating a generic Console application to remove event handler to any Sharepoint list

Hi,

 

As described in my earlier Post, many a time developer needs to add the event handler to list for which I shared a console application. The same way many a times we need to remove the event handler form the list. To do this I have created another console application which is available as download here.

 

The console application does the work of removing the event handler to the list. As before the console application needs 5 different values from the appsettings section of the configuration file.

 

Continued...

Creating a generic Console application to add event handler to any Sharepoint list

Hi,

 

Continued...

Congratulations! We are pleased to present you with the 2009 Microsoft® MVP Award! - Vikram Lakhotia

Hi,

 



Dear Vikram Lakhotia,

Congratulations! We are pleased to present you with the 2009 Microsoft® MVP Award!

 


Continued...

Using event handler in Sharepoint to make any column unique

Hi,

 

Many a times in a Sharepoint list we want to have one of the columns to act as a unique column. But there is no easy way to do it.

 

There are a couple of ways to make this happen,

Continued...

Running Commands with Elevated Privileges in Windows Sharepoint Services 3.0

Hi,

 

Few days back while coding for a webpart in a Sharepoint site, I had to check the roles of all the groups the user was linked to. The code to do it seems to be very simple.

Continued...

Site outage and Back
Hi,

The site was down for last few days. The problem was with my hosting provider. who got the site down without intimidating me in any way. After lots of complaining the site is back up and running.

Its feels so relaxed when the site comes back after such a long outage without any reason. I just hope this does not happen again........

Vikram

CTP of Visual Studio 2010 and dot Net framework 4.0 released by Microsoft

Hi,

Continued...

Now you can get SMS alert for My blog in India

Hi,

As soon as I saw the new service from Google (SMS channel) that can take RSS feed and use it to send SMS update to all the subscriber, i decided to use it in my blog.

I thought it would be great for some of the user who would like to have SMS update when a new blog is added.

You can subscribe to the SMS update by clicking on the link. You will have to verify your mobile. All you need for this service is an google account and a mobile number to recieve the SMS updates.

http://labs.google.co.in/smschannels/subscribe/VikramLakhotia_TechBlog

Unfortunately this service is only available in INDIA. so people in other country will have to wait till this service is available in their country.

Vikram


Sharepoint Getting SPWeb object in Itemdeleting event through properties

Hi,

 

A few days ago I was working with Item deleting event in the share point. I had to update some of the referenced items in the other records in the same list when an item was being deleted.

 

Continued...

Microsoft releases Silverlight 2.0

Hi,

 

Microsoft has released the latest version of Silverlight technology to release. SilverLight2 final version was released by Microsoft yesterday. You can download Silverlight 2, as well the Visual Studio 2008 and Expression Blend 2 tool support to target it, here.

 

Continued...

Working on Attachment object SPFile in a share point list

Hi,

While working with share point, many a times, when you are working with list item you have attachments with the list item. Many a times you want to programmatically access these attachment files (as SPFile objects). The SPListItem also exposes a collection of all the Attachments with the help of the property Attachments. But this list is nothing but a collection of string containing the filename of the Attachment.

To get to work with the actual SPFile object for each attachment, this will not help much. There are two way to get the SPFile object for the attachments.

SPFolder folder = web.Folders["Lists"].SubFolders[list.Title].SubFolders["Attachments"].SubFolders[listitem.ID.ToString()];

Continued...

SP1 for Visual studio 2008 and dot net framework 3.5 out

Hi,

Microsoft has released sp1 for dot net framework 3.5 and visual studio 2008 The SP1 has following feature update for


Dot Net framework
Asp.Net Dynamic data
Asp.net Ajax Browser history

Asp.net Ajax Script combining

Ado.Net data services

Ado.net entity framework

The SP1 for visual studio 2008 also has many notable bug fixes. You can find a list of the fixes here.

 

Continued...

Using Rowcount and Top keyword for controlling number of records returned

Hi,

Many a times in a query we need to limit down the number of records returned in the query. This can be done in two ways using the TOP keyword or the row count keyword.

Select top 10 from Table

This will return the top 10 records from the query. We can also make this dynamic by making the Value in Top keyword to come from a variable.

DECLARE @top INT
SET @top = 10
SELECT TOP(@top) * FROM Table

Continued...

Programmatically Embedding another file to the word document

Hi

Many a times we want to embed some document in the word file, with the help of Insert-> File-> Select File menu item. This will copy the content of the file to the word document. This can also be done programmatically. 

String LocationOfFileToMerge = "C:\\Myfile.doc";

range.InsertFile(LocationOfFileToMerge,ref oMissing, ref oFalse, ref oFalse, ref oFalse);

We can also embed the document in the word file instead of copying the text of the document. In this case you can embed any kind of document.


Object NameForLabel = "File Name";

Continued...
 
Copyright © 2006 - 2009 Vikram Lakhotia