GIDS 2011 – Developer Summit Kick Off

April 19, 2011

So the waiting is over and here it is the GIDS 2011 is going to start from today,I started early in the morning from my home knowing very well the bangalore traffic and dont want to be victim of the traffic.

Reached IISC campus around 9.00 am and got the registrations done and collected my goodies. Fine its the time to look around for the stalls in expo and got really interested once I got to see DevExpress stall ,how can I forget ASPXPivotGrid from them which I had used for one of my customer project and that saved lot of my time and as well won the customer confidence. Just checked into the stall and met Mark and his buddies ,the guy who leads the ASP.NET and was really pumped up when I said that I used ASPXPivotGrid and he immediately asked me to give an video testimonial and I accepted with pleasure. So my day at GIDS 2011 started with an interesting note…aahh . I can’t wait but no more the sessions yes, I had no seats left when I try to enter the Main Hall and was asked by the personals of GIDS to rush for Hall A and watch the live video session.

Not Bad ,The first session was interesting since it was one close to my heart ,the topic was “Building Quality Into Your Application Throughout the Lifecycle” and I should really “Ben” was excellent in the way he expressed his thoughts about TDD (test driven development) and session really good starter for GIDS 2011. aaah.. the next session is so exciting as its by the gentlemen “Mark Miller” from DevExpress on the topic “Stepping into the next near future of the IDE” and shown some excellent demo on the future IDE’s,especially I liked about the flow of verbs and the data flow diagram which is generated on the code behind and just made me madly looking for the IDE. Wow man when he shown the way to code  using the “Guitar” and man ohhh.man “Enables the musicians to code”… wow it was mazing I can a write the code using guitar which altogether a different dimension from now on I will look at Guitar going forward.. Miller you are rocking man….

So far the GIDs 2011 was so good….looking forward for further sessions.


General Business Taxonomy free download – Managed Metadata Service

March 29, 2011

While you guys gear up for INDO-PAK clash ,even me too can’t wait to watch the exciting match and in the mean time here is an exciting stuff .

If you are looking for general business taxonomy terms  instead of looking into the empty term store ,it is available for free download .The Microsoft SharePoint team have teamed up with WAND, a leading provider of Enterprise Taxonomies, to make their General Business Taxonomy available as a freely available download.

The General Business Taxonomy consists of around 500 terms describing common functional areas that exist in most businesses.  The General Business Taxonomy can be imported in to the SharePoint 2010 term store within minutes and provides a great starting point for customers looking to build a corporate vocabulary and take advantage of the Managed Metadata Service. Enjoy guys….


“Path Not Exist” Error while saving an excel sheet from excel 2010

March 29, 2011

If you face an path does not exist error while trying to save your excel sheet from excel 2010 to a SharePoint document library,then it could be because of “Desktop Experience feature is not installed”  by default in your windows server 2008. Just install/enable the feature will solve the problem for you… Enjoy..


Get the base list types available in SharePoint

March 29, 2011

If you want retrieve the list of base list types available in SharePoint ,please use the below code

string[] listTypeNames = System.Enum.GetNames(typeof(SPListTemplateType));
Array listTypeValues = System.Enum.GetValues(typeof(SPListTemplateType));

int j = 0;

foreach (int i in listTypeValues)
{
Console.WriteLine(listTypeNames[j++].ToString() + ” ” + i.ToString());
}

This should return the results like below
SPListTemplateType.Contacts = 105
SPListTemplateType.DiscussionBoard = 108
SPListTemplateType.DocumentLibrary = 101
SPListTemplateType.Events = 106
SPListTemplateType.Announcements = 104
SPListTemplateType.GenericList = 100
SPListTemplateType.InvalidType = -1
SPListTemplateType.IssueTracking = 1100
SPListTemplateType.Links = 103
SPListTemplateType.ListTemplateCatalog = 114
SPListTemplateType.PictureLibrary = 109
SPListTemplateType.Survey = 102
SPListTemplateType.Tasks = 107
SPListTemplateType.WebPartCatalog = 113
SPListTemplateType.WebTemplateCatalog = 111
SPListTemplateType.XMLForm = 115


UnSecured Application Pages in SharePoint 2010

March 10, 2011

While creating the unsecured application pages like Login,User Registration Pages especially for FBA sites in SharePoint ,we should be inherting our page from the base class ‘UnSecuredLayoutsPageBase’ like below.

// inherit the page from Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase instead of Microsoft.SharePoint.WebControls.LayoutsPageBase

public partial class UserRegistrationPage : Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase

{

protected void Page_Load(object sender, EventArgs e)
{

}

protected override void OnPreInit(EventArgs e)
{

SPSecurity.RunWithElevatedPrivileges(delegate()
{

base.OnPreInit(e);
Microsoft.SharePoint.SPWeb _Web = SPControl.GetContextWeb(Context);
this.MasterPageFile = _Web.MasterUrl;
});

}

}

but the above class implementation will fail when you test after deploying it,actually what it does is while you try to load the UserRegistrationPage from browser it automatically redirects to ‘Login’ page which is available inside thej IDENITYMODEL/Forms folder.

To resolve the issue,you need to add/override the AllowAnonymousAccess property and return true along with AllowWebNull in your custom application page and this should resolve the problem.

//override the allow anonymous property to true
protected override bool AllowAnonymousAccess
{
get { return true; }
}

protected override bool AllowNullWeb { get { return true; } }


Upgrade to SharePoint 2010

February 23, 2011

I found the below video was really good resource for SharePoint 2010 upgrade ,Thanks to Shane Young MVP.


Redirecting to another page from JavaScript.showModalDialog window

December 26, 2010

Hope you all had a wonderful christmas celebration,so this is my first post after christmas where I had a good two weekend days.

Redirecting to another page from JavaScript Modal window without closing the window will not work if use the following client side code ,it always opens a new modeless window where the page will be displayed.

Window.location = url
document.location = url
top.location.href= url

so what we do and how we get a page redirected within the same window instance ,okay here we go.

Consider you have a page called Main.aspx where you have hyper link or a button which you want open a page called ‘OpenmeinModal.aspx” where from inside the ‘OpenmeinModal.aspx” you want to redirect to a new page called ‘redirectmewithinsamewindow.aspx”. You achieve this using the below sample code all you need to do is create a frameset.

Enjoy


Merry Christmas

December 24, 2010

So the day has finally arrived for this year ,I am talking about the christmas celebration and its the time to party now. I had plenty over this week and I wish each one a very happy merry christmas.


SharePoint 2010 : Hide Ribbon,Site Actions,Left Navigation,Bread Crumb easily using CSS

December 24, 2010

I had always request from my customers during SharePoint branding and customization to hide Ribbon,Site Actions,Left Navigation,Bread Crumb in a single or more than one page. The easy way to do so is please add a content editor webpart and edit the content in html source mode and copy and paste the below CSS classes. phew just in a matter of time you have done it without much hassle.

#s4-ribbonrow { display:none } –> top ribbon

#s4-leftpanel { display:none } –> left navigation

.s4-ca { margin-left:0px;background:transaparent} –> to keep the margin starting from the left or else you will find a blank space if you use only the above class

.s4-breadcrumb-top { display : none } –> breadcrumb

#s4-titlerow { display:none } –> top bar

Enjoy SharePoint Programming


Adding SharePoint Notification after any operation

December 24, 2010

I love the way SharePoint 2010 notification works and when I say the first time I really thought this going to be one of the cool foundings from MS. Guys please don’t forget to include this feature in your SharePoint apps,so are your geared up then implement using the below sample code.

var strNotificationID, strBlogNotificationID;

function showNofication()
{
strNotificationID = SP.UI.Notify.addNotification(“Message : Server is down for maintenance “, false);
strBlogNotificationID = SP.UI.Notify.addNotification(“Udai @ Bestofcyber.wordpress.com :Welcome to My World. “, true);
}

function removeNofication()
{
if ( strBlogNotificationID != null)
SP.UI.Notify.removeNotification( strBlogNotificationID;
}

The message can be built using html element as well ,to provide a better look and feel

Happy SharePoint 2010 Programming


Follow

Get every new post delivered to your Inbox.