SlideShare a Scribd company logo
1 of 17
SharePoint 2010для ASP .NET разработчика. Иван Подобед. Belarus Sharepoint User Group http://www.sharepointgroups.org/sites/belarus
План: Базовые умения ASP .NET УчимSP2007 и SP2010 Оттачиваем мастерство
Основа SP 2007 SP 2010 ASP .NET 2 WWF (.NET 3.5) JavaScript Web Service ASP .NET 3.5 Silverlight WCF
Обратить внимание: SP 2007 SP 2010 ASP .NET 2 WWF (.NET 3.5) JavaScript Web Service ASP .NET 3.5 Silverlight WCF * Осторожно, личное мнение!
Задача: запрос элементов списка SP 2007: CAML SP 2010: SPLinq string simpleQuery =  @"<Query><Where><Or><Eq> <FieldRef Name=""ContentType"" /> <Value Type=""Text"">My Content Type</Value></Eq><IsNotNull> <FieldRef Name=""Description"" /> </IsNotNull></Or></Where> <GroupBy Collapse=""TRUE""> <FieldRef Ascending=""FALSE"" Name=""Title"" /></GroupBy> <OrderBy><FieldRef Name=""_Author"" /><FieldRef Name=""AuthoringDate"" /><FieldRef Ascending=""TRUE"" Name=""AssignedTo"" /></OrderBy></Query>"; varsimpleQuery = from item in entitiesContext.Items           where item.Project.DueDate < DateTime.Now.AddYears(5)  orderbyitem.Project.DueDate           select new  { item.Title, Contact =  item.Project.PrimaryContact.Title };
Задача: запрос c Join SP 2007: CAML SP 2010: SPLinq 2 запроса, и Join через объектную модель SPQuery query = new SPQuery();  query.Query = "<Where><Eq><FieldRef Name=amp;quot;Companyamp;quot; /><Value  Type=amp;quot;Textamp;quot;/>Dell</Value></Eq></Where>";  query.Joins = "<Join Type=amp;quot;INNERamp;quot; List='" +  siteCollection.RootWeb.Lists["Companies"].ID + "' Alias=amp;quot;CMPamp;quot;>  <Eq><FieldRef Name=amp;quot;Companyamp;quot; RefType=amp;quot;IDamp;quot; /><FieldRef List=amp;quot;CMPamp;quot;  Name=amp;quot;IDamp;quot; /></Eq>  </Join>";  query.ProjectedFields = "<Field Name=amp;quot;CompanyHQamp;quot; Type=amp;quot;Lookupamp;quot; List=amp;quot;CMPamp;quot;  ShowField=amp;quot;Headquartersamp;quot; />";
Задача: получение данных на клиенте (AJAX, Silverlight etc) SP 2007: custom code SP 2010: Client Object Model Подзадачи: Реализовать серверный обработчик асинхронного запроса Придумать формат данных Реализовать асинхронные запросы function getUserInfo(userID)  { varclientCtx = new SP.ClientContext.get_current(); var web = clientContext.get_web(); varuserInfoList = web.get_siteUserInfoList(); varcamlQuery = new SP.CamlQuery(); camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name=amp;apos;IDamp;apos;/>' +'<Value Type=amp;apos;Numberamp;apos;>' + userID + '</Value></Eq>' +'</Where></Query><RowLimit>1</RowLimit></View>'); this.collListItem = userInfoList.getItems(camlQuery); clientContext.load(collListItem); clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed)); }
Задача: управление поведением списка               Event Receiver -Item -Field -Feature -Site -Item* -Field -Feature -Email -Site* ,[object Object]
List,[object Object]
Задача: апгрейд портала до следующей версии SP 2007: complex scripts SP 2010: ALM features Кастомный скрипт для обновления существующего контента Уникальные процедуры развертывания Проблемы с использованием шаблонов -Sandboxed WSP -ВерсионностьFeature -единый формат WSP
Задача: кастом Web Part (ASCX, Silverlight) SP 2007: 3rd party SP 2010: Visual WebPart Сторонние шаблоны LoadControl() Манипуляции с WebConfig Развертывание Дизайнер интегрирован с VS2010
Задача: расширение поиска SP 2007: reinvent SP 2010: inherit public class CoreResultsWithRankingModelID : WebPart {  … } public class CoreResultsWithRankingModelID : CoreResultsWebPart {  … }
Задача: Branding SP 2007: master 2x SP 2010: master Default.master Application.master 1.  Default.master
Задача: средства разработки SP 2007: 100500 SP 2010: 3 VS 2008 SPD 2007 *CodePlex VS 2010 SPD 2010 Powershell
Задача: cross-platformsolution               SP 2007-2010 CPU Target = All VSeWSS Minimal Trust 1. Farm-level WSP
Summary SP 2007: old school SP 2010: new wave Знания SP2007 нужны, чтобы стать экспертом SharePoint. Изучим SP2010. Это сделать легче, быстрее и интереснее.
Материалы Презентация создана по мотивам  тренинга Microsoft SharePoint 2010  Developer Ignite. Подробнее см. http://vspug.com/sharepointby/2010/02/08/sharepoint-2010-dev-ignite-summary-ru

More Related Content

Viewers also liked

Sp Conf Ru Managed Metadata
Sp Conf Ru Managed MetadataSp Conf Ru Managed Metadata
Sp Conf Ru Managed MetadataIvan Padabed
 
The things we don't see – stories of Software, Scala and Akka
The things we don't see – stories of Software, Scala and AkkaThe things we don't see – stories of Software, Scala and Akka
The things we don't see – stories of Software, Scala and AkkaKonrad Malawski
 
A rare picture_of_20_tigers_together
A rare picture_of_20_tigers_togetherA rare picture_of_20_tigers_together
A rare picture_of_20_tigers_togetherSuresh Kumar
 
Gedee Technical Training Institute - Presentation
Gedee Technical Training Institute - PresentationGedee Technical Training Institute - Presentation
Gedee Technical Training Institute - PresentationSuresh Kumar
 
Career in Management Education
Career in Management EducationCareer in Management Education
Career in Management EducationDr Mohan Savade
 
Powerpoint Presentation of PhD Viva
Powerpoint Presentation of PhD VivaPowerpoint Presentation of PhD Viva
Powerpoint Presentation of PhD VivaDr Mohan Savade
 
Manejo de Stock y Almacenamiento de Medicamentos en Bodega de Farmacia
Manejo de Stock y Almacenamiento de Medicamentos en Bodega de FarmaciaManejo de Stock y Almacenamiento de Medicamentos en Bodega de Farmacia
Manejo de Stock y Almacenamiento de Medicamentos en Bodega de FarmaciaAlejandro Navarro Durán
 
Conclusiones Capítulo General 5
Conclusiones Capítulo General 5Conclusiones Capítulo General 5
Conclusiones Capítulo General 5framasg
 
Evaris Peter Resume Word
Evaris Peter Resume WordEvaris Peter Resume Word
Evaris Peter Resume WordEvaris_Peter
 
elemento de maquina
elemento de maquinaelemento de maquina
elemento de maquinayuise04
 
The importance about the continents with ancient time & scienti fics findings
The importance about the continents with ancient time & scienti fics  findings  The importance about the continents with ancient time & scienti fics  findings
The importance about the continents with ancient time & scienti fics findings Deepak Somaji-Sawant
 
The hidden trouble behind beauty
The hidden trouble behind beautyThe hidden trouble behind beauty
The hidden trouble behind beautyvansusa
 

Viewers also liked (19)

Sp Conf Ru Managed Metadata
Sp Conf Ru Managed MetadataSp Conf Ru Managed Metadata
Sp Conf Ru Managed Metadata
 
The things we don't see – stories of Software, Scala and Akka
The things we don't see – stories of Software, Scala and AkkaThe things we don't see – stories of Software, Scala and Akka
The things we don't see – stories of Software, Scala and Akka
 
A rare picture_of_20_tigers_together
A rare picture_of_20_tigers_togetherA rare picture_of_20_tigers_together
A rare picture_of_20_tigers_together
 
Seminar career planning
Seminar career planningSeminar career planning
Seminar career planning
 
Gedee Technical Training Institute - Presentation
Gedee Technical Training Institute - PresentationGedee Technical Training Institute - Presentation
Gedee Technical Training Institute - Presentation
 
Career in Management Education
Career in Management EducationCareer in Management Education
Career in Management Education
 
The Greatest Gift
The Greatest GiftThe Greatest Gift
The Greatest Gift
 
Powerpoint Presentation of PhD Viva
Powerpoint Presentation of PhD VivaPowerpoint Presentation of PhD Viva
Powerpoint Presentation of PhD Viva
 
Manejo de Stock y Almacenamiento de Medicamentos en Bodega de Farmacia
Manejo de Stock y Almacenamiento de Medicamentos en Bodega de FarmaciaManejo de Stock y Almacenamiento de Medicamentos en Bodega de Farmacia
Manejo de Stock y Almacenamiento de Medicamentos en Bodega de Farmacia
 
Vehicle Paint Wraps For You
Vehicle Paint Wraps For YouVehicle Paint Wraps For You
Vehicle Paint Wraps For You
 
Ci workshop
Ci workshopCi workshop
Ci workshop
 
AHORA
AHORAAHORA
AHORA
 
Conclusiones Capítulo General 5
Conclusiones Capítulo General 5Conclusiones Capítulo General 5
Conclusiones Capítulo General 5
 
Evaris Peter Resume Word
Evaris Peter Resume WordEvaris Peter Resume Word
Evaris Peter Resume Word
 
elemento de maquina
elemento de maquinaelemento de maquina
elemento de maquina
 
The importance about the continents with ancient time & scienti fics findings
The importance about the continents with ancient time & scienti fics  findings  The importance about the continents with ancient time & scienti fics  findings
The importance about the continents with ancient time & scienti fics findings
 
Educação -joão_ubaldo._-_pps
Educação  -joão_ubaldo._-_ppsEducação  -joão_ubaldo._-_pps
Educação -joão_ubaldo._-_pps
 
The hidden trouble behind beauty
The hidden trouble behind beautyThe hidden trouble behind beauty
The hidden trouble behind beauty
 
Síndrome de klinefelter
Síndrome de klinefelterSíndrome de klinefelter
Síndrome de klinefelter
 

Similar to SP2010 for ASP.NET dev Ru

Js Http Request дмитрий котеров
Js Http Request   дмитрий котеровJs Http Request   дмитрий котеров
Js Http Request дмитрий котеровMedia Gorod
 
Mobile Applications With Geo Google API
Mobile Applications With Geo Google APIMobile Applications With Geo Google API
Mobile Applications With Geo Google APIsshpack
 
Adobe Flex константин ковалев
Adobe Flex   константин ковалевAdobe Flex   константин ковалев
Adobe Flex константин ковалевMedia Gorod
 
Zen Coding
Zen CodingZen Coding
Zen Coding404fest
 
Использование WebMoney в Perl‎
Использование WebMoney в Perl‎Использование WebMoney в Perl‎
Использование WebMoney в Perl‎mayperl
 
DrupalCamp Kyiv 2011. Views - стандарт вывода списка данных. Расширение Views...
DrupalCamp Kyiv 2011. Views - стандарт вывода списка данных. Расширение Views...DrupalCamp Kyiv 2011. Views - стандарт вывода списка данных. Расширение Views...
DrupalCamp Kyiv 2011. Views - стандарт вывода списка данных. Расширение Views...Viktor Likin
 
167 web-__П1
167  web-__П1167  web-__П1
167 web-__П1vadimben
 
Application Developer Day Conf 2011 Andrey Rebrov
Application Developer Day Conf 2011 Andrey RebrovApplication Developer Day Conf 2011 Andrey Rebrov
Application Developer Day Conf 2011 Andrey RebrovAndrey Rebrov
 
Интернационализация и локализация в Symfony / Symfony I18n And L10n
Интернационализация и локализация в Symfony / Symfony I18n And L10nИнтернационализация и локализация в Symfony / Symfony I18n And L10n
Интернационализация и локализация в Symfony / Symfony I18n And L10nIgor Brovchenko
 
Alexander manuhin selenium_php_v2.0
Alexander manuhin selenium_php_v2.0Alexander manuhin selenium_php_v2.0
Alexander manuhin selenium_php_v2.0matroskin1980
 
Igor Khotin - Domain Specific Languages
Igor Khotin - Domain Specific LanguagesIgor Khotin - Domain Specific Languages
Igor Khotin - Domain Specific LanguagesIgor Khotin
 
Building corporate portals with liferay JEEConf 2011
Building corporate portals with liferay   JEEConf 2011Building corporate portals with liferay   JEEConf 2011
Building corporate portals with liferay JEEConf 2011Alexey Kakunin
 
Выступление Андрея Сумина, Mail.Ru Group, на High Performance Conference
Выступление Андрея Сумина, Mail.Ru Group, на High Performance ConferenceВыступление Андрея Сумина, Mail.Ru Group, на High Performance Conference
Выступление Андрея Сумина, Mail.Ru Group, на High Performance ConferenceEYevseyeva
 
Ubercart -nemnogo_primerov_iz_zhizni
Ubercart  -nemnogo_primerov_iz_zhizniUbercart  -nemnogo_primerov_iz_zhizni
Ubercart -nemnogo_primerov_iz_zhiznidrupalconf
 

Similar to SP2010 for ASP.NET dev Ru (20)

Js Http Request дмитрий котеров
Js Http Request   дмитрий котеровJs Http Request   дмитрий котеров
Js Http Request дмитрий котеров
 
Mobile Applications With Geo Google API
Mobile Applications With Geo Google APIMobile Applications With Geo Google API
Mobile Applications With Geo Google API
 
Vormid
VormidVormid
Vormid
 
Perl in practice
Perl in practicePerl in practice
Perl in practice
 
Adobe Flex константин ковалев
Adobe Flex   константин ковалевAdobe Flex   константин ковалев
Adobe Flex константин ковалев
 
Zen Coding
Zen CodingZen Coding
Zen Coding
 
XML Schema
XML SchemaXML Schema
XML Schema
 
Использование WebMoney в Perl‎
Использование WebMoney в Perl‎Использование WebMoney в Perl‎
Использование WebMoney в Perl‎
 
DrupalCamp Kyiv 2011. Views - стандарт вывода списка данных. Расширение Views...
DrupalCamp Kyiv 2011. Views - стандарт вывода списка данных. Расширение Views...DrupalCamp Kyiv 2011. Views - стандарт вывода списка данных. Расширение Views...
DrupalCamp Kyiv 2011. Views - стандарт вывода списка данных. Расширение Views...
 
167 web-__П1
167  web-__П1167  web-__П1
167 web-__П1
 
Application Developer Day Conf 2011 Andrey Rebrov
Application Developer Day Conf 2011 Andrey RebrovApplication Developer Day Conf 2011 Andrey Rebrov
Application Developer Day Conf 2011 Andrey Rebrov
 
Ruby
RubyRuby
Ruby
 
Интернационализация и локализация в Symfony / Symfony I18n And L10n
Интернационализация и локализация в Symfony / Symfony I18n And L10nИнтернационализация и локализация в Symfony / Symfony I18n And L10n
Интернационализация и локализация в Symfony / Symfony I18n And L10n
 
Alexander manuhin selenium_php_v2.0
Alexander manuhin selenium_php_v2.0Alexander manuhin selenium_php_v2.0
Alexander manuhin selenium_php_v2.0
 
Igor Khotin - Domain Specific Languages
Igor Khotin - Domain Specific LanguagesIgor Khotin - Domain Specific Languages
Igor Khotin - Domain Specific Languages
 
Building corporate portals with liferay JEEConf 2011
Building corporate portals with liferay   JEEConf 2011Building corporate portals with liferay   JEEConf 2011
Building corporate portals with liferay JEEConf 2011
 
Выступление Андрея Сумина, Mail.Ru Group, на High Performance Conference
Выступление Андрея Сумина, Mail.Ru Group, на High Performance ConferenceВыступление Андрея Сумина, Mail.Ru Group, на High Performance Conference
Выступление Андрея Сумина, Mail.Ru Group, на High Performance Conference
 
The Best Portlet
The Best PortletThe Best Portlet
The Best Portlet
 
Perl & Unicode
Perl & UnicodePerl & Unicode
Perl & Unicode
 
Ubercart -nemnogo_primerov_iz_zhizni
Ubercart  -nemnogo_primerov_iz_zhizniUbercart  -nemnogo_primerov_iz_zhizni
Ubercart -nemnogo_primerov_iz_zhizni
 

SP2010 for ASP.NET dev Ru

  • 1. SharePoint 2010для ASP .NET разработчика. Иван Подобед. Belarus Sharepoint User Group http://www.sharepointgroups.org/sites/belarus
  • 2. План: Базовые умения ASP .NET УчимSP2007 и SP2010 Оттачиваем мастерство
  • 3. Основа SP 2007 SP 2010 ASP .NET 2 WWF (.NET 3.5) JavaScript Web Service ASP .NET 3.5 Silverlight WCF
  • 4. Обратить внимание: SP 2007 SP 2010 ASP .NET 2 WWF (.NET 3.5) JavaScript Web Service ASP .NET 3.5 Silverlight WCF * Осторожно, личное мнение!
  • 5. Задача: запрос элементов списка SP 2007: CAML SP 2010: SPLinq string simpleQuery = @"<Query><Where><Or><Eq> <FieldRef Name=""ContentType"" /> <Value Type=""Text"">My Content Type</Value></Eq><IsNotNull> <FieldRef Name=""Description"" /> </IsNotNull></Or></Where> <GroupBy Collapse=""TRUE""> <FieldRef Ascending=""FALSE"" Name=""Title"" /></GroupBy> <OrderBy><FieldRef Name=""_Author"" /><FieldRef Name=""AuthoringDate"" /><FieldRef Ascending=""TRUE"" Name=""AssignedTo"" /></OrderBy></Query>"; varsimpleQuery = from item in entitiesContext.Items where item.Project.DueDate < DateTime.Now.AddYears(5) orderbyitem.Project.DueDate select new { item.Title, Contact = item.Project.PrimaryContact.Title };
  • 6. Задача: запрос c Join SP 2007: CAML SP 2010: SPLinq 2 запроса, и Join через объектную модель SPQuery query = new SPQuery(); query.Query = "<Where><Eq><FieldRef Name=amp;quot;Companyamp;quot; /><Value Type=amp;quot;Textamp;quot;/>Dell</Value></Eq></Where>"; query.Joins = "<Join Type=amp;quot;INNERamp;quot; List='" + siteCollection.RootWeb.Lists["Companies"].ID + "' Alias=amp;quot;CMPamp;quot;> <Eq><FieldRef Name=amp;quot;Companyamp;quot; RefType=amp;quot;IDamp;quot; /><FieldRef List=amp;quot;CMPamp;quot; Name=amp;quot;IDamp;quot; /></Eq> </Join>"; query.ProjectedFields = "<Field Name=amp;quot;CompanyHQamp;quot; Type=amp;quot;Lookupamp;quot; List=amp;quot;CMPamp;quot; ShowField=amp;quot;Headquartersamp;quot; />";
  • 7. Задача: получение данных на клиенте (AJAX, Silverlight etc) SP 2007: custom code SP 2010: Client Object Model Подзадачи: Реализовать серверный обработчик асинхронного запроса Придумать формат данных Реализовать асинхронные запросы function getUserInfo(userID) { varclientCtx = new SP.ClientContext.get_current(); var web = clientContext.get_web(); varuserInfoList = web.get_siteUserInfoList(); varcamlQuery = new SP.CamlQuery(); camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name=amp;apos;IDamp;apos;/>' +'<Value Type=amp;apos;Numberamp;apos;>' + userID + '</Value></Eq>' +'</Where></Query><RowLimit>1</RowLimit></View>'); this.collListItem = userInfoList.getItems(camlQuery); clientContext.load(collListItem); clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed)); }
  • 8.
  • 9.
  • 10. Задача: апгрейд портала до следующей версии SP 2007: complex scripts SP 2010: ALM features Кастомный скрипт для обновления существующего контента Уникальные процедуры развертывания Проблемы с использованием шаблонов -Sandboxed WSP -ВерсионностьFeature -единый формат WSP
  • 11. Задача: кастом Web Part (ASCX, Silverlight) SP 2007: 3rd party SP 2010: Visual WebPart Сторонние шаблоны LoadControl() Манипуляции с WebConfig Развертывание Дизайнер интегрирован с VS2010
  • 12. Задача: расширение поиска SP 2007: reinvent SP 2010: inherit public class CoreResultsWithRankingModelID : WebPart { … } public class CoreResultsWithRankingModelID : CoreResultsWebPart { … }
  • 13. Задача: Branding SP 2007: master 2x SP 2010: master Default.master Application.master 1. Default.master
  • 14. Задача: средства разработки SP 2007: 100500 SP 2010: 3 VS 2008 SPD 2007 *CodePlex VS 2010 SPD 2010 Powershell
  • 15. Задача: cross-platformsolution SP 2007-2010 CPU Target = All VSeWSS Minimal Trust 1. Farm-level WSP
  • 16. Summary SP 2007: old school SP 2010: new wave Знания SP2007 нужны, чтобы стать экспертом SharePoint. Изучим SP2010. Это сделать легче, быстрее и интереснее.
  • 17. Материалы Презентация создана по мотивам тренинга Microsoft SharePoint 2010 Developer Ignite. Подробнее см. http://vspug.com/sharepointby/2010/02/08/sharepoint-2010-dev-ignite-summary-ru