Thursday, February 11, 2010

Sharepoint 2010 is on the way...

Those folks who wanted to get a fair idea about SharePoint 2010 should go thru here :


http://sharepoint2010.microsoft.com/Pages/default.aspx

and the videos are posted here: http://sharepoint2010.microsoft.com/Pages/videos.aspx

Happy SharePointing!!!

how to iterate through a hashtable:

how to iterate through a hashtable
if you have a hashtable and if you want to extract key/value pair;iterating through a hashtable://declare and define Hashtable htItem = new HashTable();
//now loop thru the key /value pair
foreach (DictionaryEntry de in htItem){splstitem[de.Key.ToString()] = de.Value.ToString();}*********************************suppose if you have acworkflow attached in your custom splist and if you wanna update the workflow task belwo is the LOC:we need to use the SPWorkflowTask.AlterTask. the most imp.part here is ht: a hashtable.
public string UpdateWorkflowTasks(Hashtable ht, int TaskID){string strRequestorsID = string.Empty;using (SPSite site = new SPSite(strUrl)){using (SPWeb web = site.OpenWeb()){web.AllowUnsafeUpdates = true;try{SPListItem taskItem = null;SPList listTasks = web.Lists["Tasks"];taskItem = listTasks.Items.GetItemById(TaskID);SPWorkflowTask.AlterTask(taskItem, ht, false);strRequestorsID = Convert.ToString(taskItem["strRequestorsID "]);}catch (Exception ex){
}web.AllowUnsafeUpdates = false;}}return strRequestorsID;

Tuesday, February 9, 2010

VS 2010 RC

Great news to all VS 2010 lovers!!!

Finally the VS 2010 has been released as an RC and its available as download:

Thanks to Soma (http://blogs.msdn.com/somasegar/archive/2010/02/08/visual-studio-2010-and-net-framework-4-release-candidate-now-available.aspx ) by announcing the same in his blog.

MSDN subscribers can downlaod the RC in the below link:

http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx

thanks