SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Desarrollo de WebParts en SharePoint 2007 MisaelMonterrocammonterrocaxp@msn.com
Agenda Infraestructura de los Web Part  en Windows® SharePoint® Services 3.0 Pasos para crear un WebPart Simple Instalación de un  Web Part Seguridad en Web Parts Exponiendo propiedades de un Web Part Web Parts conectables User Controls en Web Parts
Recursos Visual Studio Extensions for Windows SharePoint Services, v1.2 (http://www.microsoft.com/downloads/details.aspx?FamilyID=7bf65b28-06e2-4e87-9bad-086e32185e68&displaylang=en) WSS 3.0 SP1 Developer Evaluation Image (http://www.microsoft.com/downloads/details.aspx?FamilyID=1beeac6f-2ea1-4769-9948-74a74bd604fa&DisplayLang=en) Application Development Exams 70-541 TS: WSS 3.0 (http://www.microsoft.com/learning/exams/70-541.mspx)70-542 TS: MOSS 2007 (http://www.microsoft.com/learning/exams/70-542.mspx)
¿Que son los Web Parts? Bloques de códigomodularesque son usadostipicamenteparacrearportales Dan soportepara la personalización Windows SharePoint Services 3.0 (WSS 3.0) incluyevarios Web Parts y Microsoft® Office SharePoint® Server 2007 (MOSS 2007) muchos mas!
Historia de los Web Parts
Tipos de Web Parts para WSS 3.0 ASP.NET Web Parts Web parts queheredan de  ASP.NET WebPart Importadosdesdearchivos.webpart Es el tiporecomendadoparadesarrollosnuevos en SharePoint Windows SharePoint Services v2-style Web parts Web parts queheredan de Windows SharePoint ServicesWebPart Importadosdesdearchivos .dwp Soportadosúnicamente con fines de compatibilidad con SharePoint 2.0
SPWebPartManager SPWebPartZone (Left) SPWebPartZone (Right) Editor Zone Web Part 1 Web Part 3 Editor Part 1 Web Part 2 Web Part 4 Editor Part 2 Catalog Zone Web Part 5 Catalog Part 1 Catalog Part 2 Estructura de una WebPartPage Una Web Part Page en  Windows SharePoint Serviceses: Una sola instancia de la claseSPWebPartManager Una o másSPWebPartZones El Editor Zones y el Catalog Zones son proporcionadosporWindows SharePoint Services pages
Los Web Parts en SharePoint Existe una Web Part Gallery que contiene el listado de los Web Parts .DWP or .WEBPART son agregados como elementos Windows SharePoint Services puede descubrir nuevos elementos desde el web.config Mantienen su metadata .dwp .webpart Web Part Gallery
Entorno de desarrollo Microsoft® Visual Studio® 2008 extended with Visual Studio Extensions for Windows SharePoint Services 3.0 (1.2) Existen varias herramientas en CodePlex
Web Part Project Proyecto del tipo Class library Heredan de la clase System.Web.UI.WebControls.WebParts.WebPart using System; using System.Web.UI; using System.Web.UI.WebControls.WebParts; namespaceMisWebParts{   publicclassHolaMundoWebPart: WebPart { protectedoverridevoidCreateChildControls() { Controls.Add(new LiteralControl(“Hola Mundo"));     }   } }
Instalando un Web Part Assembly en Archivo BIN en  Microsoft® InternetInformation Services (IIS) Web Application  Global Assembly Cache Registrar el Web Part como Safe Control en el  web.config Poner el Web Part en el site collection Manualmente Web Part Feature SharePoint Solutionautomatiza el proceso
Registrar como Safe Control En el web.config de cada IIS Web Application (en cada Front-Web Server) <!– web.config in root directory of hosting IIS Web Application            --> <configuration> <SharePoint> <SafeControls> <SafeControlAssembly="AcmeWebParts" Namespace="AcmeWebParts"                    TypeName="*"                    Safe="True"/> </SafeControls> </SharePoint> </configuration>
Seguridad en los Web Part Los Web Parts cargadosdesde in son restringidos en seguridad Las restricciones de seguridad son controladaspor el Code Access Security Se puedenescoger entre 3 diferentesniveles WSS_Minimum(default) WSS_Medium Full <!– web.config in root directory of hosting virtual server --> <configuration> </system.web> <!-- <trust level="WSS_Minimal" originUrl="" /> --> <trustlevel="Full"originUrl=""/> </system.web> </configuration>
SharePoint Solution Paquete (MiSolucion.WSP) que contiene todos los componentes más un script de instalación Web Part assembly Web Part Feature files (CAML + .webpart) Web Part resources Manifiesto que define que hacer con cada uno de los componentes del paquete Visual Studio Extensions for Windows SharePoint Services 3.0 genera todos estos archivos
Controles hijos La interfaz grafica es creada en runtime Sobreescribe el método CreateChildControls Crea e inicializa los controles ASP.Net Agregar controles al árbol de controles para que puedan participar en eventos PostBack y manejo de ViewState No existe una experiencia en modo diseño
Creando e instalando un WebPart
Tecnicas de desarrollo para un Web Part Exponer propiedades Web Parts Conectados Cargar User Controls
Propiedadespersistidas Web Parts soporta la persistencia de propiedades Persiste la personalizaciónporaplicación o porusuario Las propiedadespueden ser modificadasutilizando el navegador using System; using System.Web.UI; using System.Web.UI.WebControls.WebParts; namespaceMMG{   protectedstring_nombreUsuario; [Personalizable(), WebBrowsable(true), WebDisplayName(“Nombre Usuario"), WebDescription(“Nombre de Usuario de la aplicación“)] publicstringNombreUsuario{ get{ return_nombreUsuario; } set{_nombreUsuario=value}     }   //... }
Exponiendo propiedades en EditorParts Tool Pane GetEditorParts EDITOR PART ApplyChanges WEB PART COMMONPROPS SyncChanges
ExponiendoPropiedades
Web Parts conectados Escenarios Master-detail, busqueda, filtrado etc.. Basado en proovedores y consumidores Windows SharePoint Services 2.0 Implementación de las interfaces (ICellProvider and ICellConsumer) ASP.NET 2.0 and Windows SharePoint Services 3.0  Tu creas tus propia interface
Provider Web Part public interface IInformacion     {         string Texto { get; set; }     } Crea tu propia interface Implementa la interface Utiliza el atributo ConnectionProvider  public class WebPartA : WebPart, IInformacion public string Texto         {             get             {                 return texto.Text;             }             set             { texto.Text = value;             }         } [ConnectionProvider("InformacionBasica")]         public IInformacionEnviarInformacion()         {             return this;         }
Consumer Web Part Utiliza el atributo ConnectionConsumer  [ConnectionConsumer("Informacion_Recepcion")]         public void RecibirInformacion(IInformacioninformacion)         { EnsureChildControls(); label.Text = informacion.Texto;         }
Creando  Web Parts conectados
Qué pasa User Controls? No existesoportenativoparautilizararchivos  .ASCX (user controls) Puedesusar ASCXs en páginas ExistencomponentesquepermitenutilizarcontrolesASCXs
Preguntas y Respuestas Email : mmonterrocaxp@msn.com Blog: http://squad.devworx.com.mx/blogs/misael Twitter: http://www.twitter.com/mmonterroca
Recuerdecompletar el formato de evaluaciónparaparticipar en la rifa de los premios
Patrocinan KED

Weitere ähnliche Inhalte

Was ist angesagt? (20)

ASP.NET
ASP.NETASP.NET
ASP.NET
 
UDA-Guia desarrollo web services
UDA-Guia desarrollo web servicesUDA-Guia desarrollo web services
UDA-Guia desarrollo web services
 
Conexión de Base de Datos
Conexión de Base de DatosConexión de Base de Datos
Conexión de Base de Datos
 
Citrix Secure Gateway
Citrix Secure GatewayCitrix Secure Gateway
Citrix Secure Gateway
 
Herramientas de trabajo (3)
Herramientas de trabajo (3)Herramientas de trabajo (3)
Herramientas de trabajo (3)
 
ASP.NET MVC - Introducción a ASP.NET MVC
ASP.NET MVC - Introducción a ASP.NET MVCASP.NET MVC - Introducción a ASP.NET MVC
ASP.NET MVC - Introducción a ASP.NET MVC
 
Presentacion sobre asp
Presentacion sobre aspPresentacion sobre asp
Presentacion sobre asp
 
Intro a ASP.NET
Intro a ASP.NETIntro a ASP.NET
Intro a ASP.NET
 
Tutorial ASP .NET
Tutorial ASP .NETTutorial ASP .NET
Tutorial ASP .NET
 
Trabajo De Oracle
Trabajo De OracleTrabajo De Oracle
Trabajo De Oracle
 
Asp .net
Asp .netAsp .net
Asp .net
 
10.desarrollowebconjava
10.desarrollowebconjava10.desarrollowebconjava
10.desarrollowebconjava
 
2009 05-07-tutorial asp.net
2009 05-07-tutorial asp.net2009 05-07-tutorial asp.net
2009 05-07-tutorial asp.net
 
Dce2 Introduccion Asp.Net
Dce2 Introduccion Asp.NetDce2 Introduccion Asp.Net
Dce2 Introduccion Asp.Net
 
Conexion mysql con java usando netbeans
Conexion mysql con java usando netbeansConexion mysql con java usando netbeans
Conexion mysql con java usando netbeans
 
Curso de Struts 2: Unidad Didáctica 01 El Entorno de Desarrollo
Curso de Struts 2: Unidad Didáctica 01 El Entorno de DesarrolloCurso de Struts 2: Unidad Didáctica 01 El Entorno de Desarrollo
Curso de Struts 2: Unidad Didáctica 01 El Entorno de Desarrollo
 
Asp.net 4
Asp.net 4Asp.net 4
Asp.net 4
 
Asp.net
Asp.netAsp.net
Asp.net
 
Aplicación de escritorio con java
Aplicación de escritorio con javaAplicación de escritorio con java
Aplicación de escritorio con java
 
ASP.NET MVC - AJAX
ASP.NET MVC - AJAXASP.NET MVC - AJAX
ASP.NET MVC - AJAX
 

Andere mochten auch

Binder Full Of Pics Chief Pics
Binder Full Of Pics Chief PicsBinder Full Of Pics Chief Pics
Binder Full Of Pics Chief Picsdmheg
 
Who ya gonna call - How to contact, contract, and collaborate with an indepen...
Who ya gonna call - How to contact, contract, and collaborate with an indepen...Who ya gonna call - How to contact, contract, and collaborate with an indepen...
Who ya gonna call - How to contact, contract, and collaborate with an indepen...Shamel Information Services
 
A Different View
A Different ViewA Different View
A Different Viewguest01b1be
 
A brief introduction to learning cell
A brief introduction to learning cellA brief introduction to learning cell
A brief introduction to learning cellWei Cheng
 
Yared Hankins Wireless Key
Yared Hankins Wireless KeyYared Hankins Wireless Key
Yared Hankins Wireless Keysolvecore
 
Luis Monsante Portfolio
Luis Monsante PortfolioLuis Monsante Portfolio
Luis Monsante PortfolioLuis Monsante
 
Solve Core Template Beta
Solve Core Template BetaSolve Core Template Beta
Solve Core Template Betasolvecore
 

Andere mochten auch (8)

Binder Full Of Pics Chief Pics
Binder Full Of Pics Chief PicsBinder Full Of Pics Chief Pics
Binder Full Of Pics Chief Pics
 
Who ya gonna call - How to contact, contract, and collaborate with an indepen...
Who ya gonna call - How to contact, contract, and collaborate with an indepen...Who ya gonna call - How to contact, contract, and collaborate with an indepen...
Who ya gonna call - How to contact, contract, and collaborate with an indepen...
 
A Different View
A Different ViewA Different View
A Different View
 
A brief introduction to learning cell
A brief introduction to learning cellA brief introduction to learning cell
A brief introduction to learning cell
 
Yared Hankins Wireless Key
Yared Hankins Wireless KeyYared Hankins Wireless Key
Yared Hankins Wireless Key
 
Luis Monsante Portfolio
Luis Monsante PortfolioLuis Monsante Portfolio
Luis Monsante Portfolio
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Solve Core Template Beta
Solve Core Template BetaSolve Core Template Beta
Solve Core Template Beta
 

Ähnlich wie Desarrollo De Web Parts En Share Point2007

Asp .Net Ajax: Patrones
Asp .Net Ajax: PatronesAsp .Net Ajax: Patrones
Asp .Net Ajax: Patronesjuliocasal
 
Programacion de aplicaciones Web con ASP.NET
Programacion de aplicaciones Web con ASP.NETProgramacion de aplicaciones Web con ASP.NET
Programacion de aplicaciones Web con ASP.NETJavier Roig
 
Building Ria Applications With Silverlight 2
Building Ria Applications With Silverlight 2Building Ria Applications With Silverlight 2
Building Ria Applications With Silverlight 2Tonymx
 
Presentación1
Presentación1Presentación1
Presentación1karla54
 
Efc programación .net-luis fernando aguas - 22012022 1700
Efc programación .net-luis fernando aguas - 22012022 1700Efc programación .net-luis fernando aguas - 22012022 1700
Efc programación .net-luis fernando aguas - 22012022 1700Luis Fernando Aguas Bucheli
 
EFC-Programación .net-Luis Fernando Aguas - 15012022 1500.pptx
EFC-Programación .net-Luis Fernando Aguas - 15012022 1500.pptxEFC-Programación .net-Luis Fernando Aguas - 15012022 1500.pptx
EFC-Programación .net-Luis Fernando Aguas - 15012022 1500.pptxLuis Fernando Aguas Bucheli
 
IT Camps Apps Office 365 Valencia 2014
IT Camps Apps Office 365 Valencia 2014IT Camps Apps Office 365 Valencia 2014
IT Camps Apps Office 365 Valencia 2014Adrian Diaz Cervera
 
Desarrollo de aplicaciones .NET
Desarrollo de aplicaciones .NETDesarrollo de aplicaciones .NET
Desarrollo de aplicaciones .NETHernan Chavarriaga
 
Novedades En Visual Studio Team System 2010
Novedades En Visual Studio Team System 2010Novedades En Visual Studio Team System 2010
Novedades En Visual Studio Team System 2010Bruno Capuano
 
Visual Studio2005
Visual Studio2005Visual Studio2005
Visual Studio2005hvillarreal
 
Microsoft Asp. Net [Asp.Net - Parte 2]
Microsoft Asp. Net [Asp.Net - Parte 2]Microsoft Asp. Net [Asp.Net - Parte 2]
Microsoft Asp. Net [Asp.Net - Parte 2]Antonio Torres
 
Exprimiendo SharePoint 2010
Exprimiendo SharePoint 2010Exprimiendo SharePoint 2010
Exprimiendo SharePoint 2010Juan Pablo
 
4. Agregar Codigo A Los Formularios Web Form
4.  Agregar Codigo A Los Formularios Web Form4.  Agregar Codigo A Los Formularios Web Form
4. Agregar Codigo A Los Formularios Web Formguest3cf6ff
 
Desarrollo de Aplicaciones con Microsoft Ajax 1.0 y Ajax Control Toolkit
Desarrollo de Aplicaciones con Microsoft Ajax 1.0 y Ajax Control ToolkitDesarrollo de Aplicaciones con Microsoft Ajax 1.0 y Ajax Control Toolkit
Desarrollo de Aplicaciones con Microsoft Ajax 1.0 y Ajax Control Toolkitpabloesp
 

Ähnlich wie Desarrollo De Web Parts En Share Point2007 (20)

Asp .Net Ajax: Patrones
Asp .Net Ajax: PatronesAsp .Net Ajax: Patrones
Asp .Net Ajax: Patrones
 
Mi app-asp-net-mvc2
Mi app-asp-net-mvc2Mi app-asp-net-mvc2
Mi app-asp-net-mvc2
 
Programacion de aplicaciones Web con ASP.NET
Programacion de aplicaciones Web con ASP.NETProgramacion de aplicaciones Web con ASP.NET
Programacion de aplicaciones Web con ASP.NET
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
 
Building Ria Applications With Silverlight 2
Building Ria Applications With Silverlight 2Building Ria Applications With Silverlight 2
Building Ria Applications With Silverlight 2
 
Clase xi
Clase xiClase xi
Clase xi
 
Presentación1
Presentación1Presentación1
Presentación1
 
Presentación1
Presentación1Presentación1
Presentación1
 
Efc programación .net-luis fernando aguas - 22012022 1700
Efc programación .net-luis fernando aguas - 22012022 1700Efc programación .net-luis fernando aguas - 22012022 1700
Efc programación .net-luis fernando aguas - 22012022 1700
 
EFC-Programación .net-Luis Fernando Aguas - 15012022 1500.pptx
EFC-Programación .net-Luis Fernando Aguas - 15012022 1500.pptxEFC-Programación .net-Luis Fernando Aguas - 15012022 1500.pptx
EFC-Programación .net-Luis Fernando Aguas - 15012022 1500.pptx
 
IT Camps Apps Office 365 Valencia 2014
IT Camps Apps Office 365 Valencia 2014IT Camps Apps Office 365 Valencia 2014
IT Camps Apps Office 365 Valencia 2014
 
Desarrollo de aplicaciones .NET
Desarrollo de aplicaciones .NETDesarrollo de aplicaciones .NET
Desarrollo de aplicaciones .NET
 
Novedades En Visual Studio Team System 2010
Novedades En Visual Studio Team System 2010Novedades En Visual Studio Team System 2010
Novedades En Visual Studio Team System 2010
 
Visual Studio2005
Visual Studio2005Visual Studio2005
Visual Studio2005
 
Microsoft Asp. Net [Asp.Net - Parte 2]
Microsoft Asp. Net [Asp.Net - Parte 2]Microsoft Asp. Net [Asp.Net - Parte 2]
Microsoft Asp. Net [Asp.Net - Parte 2]
 
Exprimiendo SharePoint 2010
Exprimiendo SharePoint 2010Exprimiendo SharePoint 2010
Exprimiendo SharePoint 2010
 
4. Agregar Codigo A Los Formularios Web Form
4.  Agregar Codigo A Los Formularios Web Form4.  Agregar Codigo A Los Formularios Web Form
4. Agregar Codigo A Los Formularios Web Form
 
Desarrollo de Aplicaciones con Microsoft Ajax 1.0 y Ajax Control Toolkit
Desarrollo de Aplicaciones con Microsoft Ajax 1.0 y Ajax Control ToolkitDesarrollo de Aplicaciones con Microsoft Ajax 1.0 y Ajax Control Toolkit
Desarrollo de Aplicaciones con Microsoft Ajax 1.0 y Ajax Control Toolkit
 
[Code Camp 2009] Introducción a ASP.NET 4.0 con Visual Studio 2010 (Ignacio L...
[Code Camp 2009] Introducción a ASP.NET 4.0 con Visual Studio 2010 (Ignacio L...[Code Camp 2009] Introducción a ASP.NET 4.0 con Visual Studio 2010 (Ignacio L...
[Code Camp 2009] Introducción a ASP.NET 4.0 con Visual Studio 2010 (Ignacio L...
 
Reconnect(); Sevilla - Keynote
Reconnect(); Sevilla - KeynoteReconnect(); Sevilla - Keynote
Reconnect(); Sevilla - Keynote
 

Mehr von Luis Du Solier

8 - Productividad en la Nube con BPOS - SharePoint Online, por Luis Du Solier
8 - Productividad en la Nube con BPOS - SharePoint Online, por Luis Du Solier8 - Productividad en la Nube con BPOS - SharePoint Online, por Luis Du Solier
8 - Productividad en la Nube con BPOS - SharePoint Online, por Luis Du SolierLuis Du Solier
 
7 - Top ten tips for a SharePoint Succesfull Deployment, por Joel Oleson
7 - Top ten tips for a SharePoint Succesfull Deployment, por Joel Oleson7 - Top ten tips for a SharePoint Succesfull Deployment, por Joel Oleson
7 - Top ten tips for a SharePoint Succesfull Deployment, por Joel OlesonLuis Du Solier
 
6 - Migracion a SharePoint 2010, por Ricardo Muñoz y Hector Insua
6 - Migracion a SharePoint 2010, por Ricardo Muñoz y Hector Insua6 - Migracion a SharePoint 2010, por Ricardo Muñoz y Hector Insua
6 - Migracion a SharePoint 2010, por Ricardo Muñoz y Hector InsuaLuis Du Solier
 
5 - SharePoint 2010 y Windows 2008 R2, por Hector Insua y Ruben Colomo
5 - SharePoint 2010 y Windows 2008 R2, por Hector Insua y Ruben Colomo5 - SharePoint 2010 y Windows 2008 R2, por Hector Insua y Ruben Colomo
5 - SharePoint 2010 y Windows 2008 R2, por Hector Insua y Ruben ColomoLuis Du Solier
 
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio AnguloLuis Du Solier
 
3 - OBA y SharePoint 2010, por Ricardo Loo
3 - OBA y SharePoint 2010, por Ricardo Loo3 - OBA y SharePoint 2010, por Ricardo Loo
3 - OBA y SharePoint 2010, por Ricardo LooLuis Du Solier
 
2 - SharePoint 2010 y Project Server 2010, por Javier D Labra
2 - SharePoint 2010 y Project Server 2010, por Javier D Labra2 - SharePoint 2010 y Project Server 2010, por Javier D Labra
2 - SharePoint 2010 y Project Server 2010, por Javier D LabraLuis Du Solier
 
2b - PowerPivot y SharePoint 2010, por Tomas Hernandez
2b - PowerPivot y SharePoint 2010, por Tomas Hernandez2b - PowerPivot y SharePoint 2010, por Tomas Hernandez
2b - PowerPivot y SharePoint 2010, por Tomas HernandezLuis Du Solier
 
1 - Desarrollo en SharePoint con Visual Studio 2010, por Misael Monterroca
1 - Desarrollo en SharePoint con Visual Studio 2010, por Misael Monterroca1 - Desarrollo en SharePoint con Visual Studio 2010, por Misael Monterroca
1 - Desarrollo en SharePoint con Visual Studio 2010, por Misael MonterrocaLuis Du Solier
 
Silverlighty And SharePoint2007
Silverlighty And SharePoint2007Silverlighty And SharePoint2007
Silverlighty And SharePoint2007Luis Du Solier
 
Introduccion a MOSS 2007
Introduccion a MOSS 2007Introduccion a MOSS 2007
Introduccion a MOSS 2007Luis Du Solier
 

Mehr von Luis Du Solier (11)

8 - Productividad en la Nube con BPOS - SharePoint Online, por Luis Du Solier
8 - Productividad en la Nube con BPOS - SharePoint Online, por Luis Du Solier8 - Productividad en la Nube con BPOS - SharePoint Online, por Luis Du Solier
8 - Productividad en la Nube con BPOS - SharePoint Online, por Luis Du Solier
 
7 - Top ten tips for a SharePoint Succesfull Deployment, por Joel Oleson
7 - Top ten tips for a SharePoint Succesfull Deployment, por Joel Oleson7 - Top ten tips for a SharePoint Succesfull Deployment, por Joel Oleson
7 - Top ten tips for a SharePoint Succesfull Deployment, por Joel Oleson
 
6 - Migracion a SharePoint 2010, por Ricardo Muñoz y Hector Insua
6 - Migracion a SharePoint 2010, por Ricardo Muñoz y Hector Insua6 - Migracion a SharePoint 2010, por Ricardo Muñoz y Hector Insua
6 - Migracion a SharePoint 2010, por Ricardo Muñoz y Hector Insua
 
5 - SharePoint 2010 y Windows 2008 R2, por Hector Insua y Ruben Colomo
5 - SharePoint 2010 y Windows 2008 R2, por Hector Insua y Ruben Colomo5 - SharePoint 2010 y Windows 2008 R2, por Hector Insua y Ruben Colomo
5 - SharePoint 2010 y Windows 2008 R2, por Hector Insua y Ruben Colomo
 
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
 
3 - OBA y SharePoint 2010, por Ricardo Loo
3 - OBA y SharePoint 2010, por Ricardo Loo3 - OBA y SharePoint 2010, por Ricardo Loo
3 - OBA y SharePoint 2010, por Ricardo Loo
 
2 - SharePoint 2010 y Project Server 2010, por Javier D Labra
2 - SharePoint 2010 y Project Server 2010, por Javier D Labra2 - SharePoint 2010 y Project Server 2010, por Javier D Labra
2 - SharePoint 2010 y Project Server 2010, por Javier D Labra
 
2b - PowerPivot y SharePoint 2010, por Tomas Hernandez
2b - PowerPivot y SharePoint 2010, por Tomas Hernandez2b - PowerPivot y SharePoint 2010, por Tomas Hernandez
2b - PowerPivot y SharePoint 2010, por Tomas Hernandez
 
1 - Desarrollo en SharePoint con Visual Studio 2010, por Misael Monterroca
1 - Desarrollo en SharePoint con Visual Studio 2010, por Misael Monterroca1 - Desarrollo en SharePoint con Visual Studio 2010, por Misael Monterroca
1 - Desarrollo en SharePoint con Visual Studio 2010, por Misael Monterroca
 
Silverlighty And SharePoint2007
Silverlighty And SharePoint2007Silverlighty And SharePoint2007
Silverlighty And SharePoint2007
 
Introduccion a MOSS 2007
Introduccion a MOSS 2007Introduccion a MOSS 2007
Introduccion a MOSS 2007
 

Kürzlich hochgeladen

EPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveEPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveFagnerLisboa3
 
guía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan Josephguía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan JosephBRAYANJOSEPHPEREZGOM
 
Global Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft FabricGlobal Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft FabricKeyla Dolores Méndez
 
pruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNITpruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNITMaricarmen Sánchez Ruiz
 
Proyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptxProyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptx241521559
 
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...silviayucra2
 
Presentación guía sencilla en Microsoft Excel.pptx
Presentación guía sencilla en Microsoft Excel.pptxPresentación guía sencilla en Microsoft Excel.pptx
Presentación guía sencilla en Microsoft Excel.pptxLolaBunny11
 
International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)GDGSucre
 
9egb-lengua y Literatura.pdf_texto del estudiante
9egb-lengua y Literatura.pdf_texto del estudiante9egb-lengua y Literatura.pdf_texto del estudiante
9egb-lengua y Literatura.pdf_texto del estudianteAndreaHuertas24
 
Trabajo Mas Completo De Excel en clase tecnología
Trabajo Mas Completo De Excel en clase tecnologíaTrabajo Mas Completo De Excel en clase tecnología
Trabajo Mas Completo De Excel en clase tecnologíassuserf18419
 
CLASE DE TECNOLOGIA E INFORMATICA PRIMARIA
CLASE  DE TECNOLOGIA E INFORMATICA PRIMARIACLASE  DE TECNOLOGIA E INFORMATICA PRIMARIA
CLASE DE TECNOLOGIA E INFORMATICA PRIMARIAWilbisVega
 
Redes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdfRedes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdfsoporteupcology
 
Desarrollo Web Moderno con Svelte 2024.pdf
Desarrollo Web Moderno con Svelte 2024.pdfDesarrollo Web Moderno con Svelte 2024.pdf
Desarrollo Web Moderno con Svelte 2024.pdfJulian Lamprea
 

Kürzlich hochgeladen (13)

EPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveEPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial Uninove
 
guía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan Josephguía de registro de slideshare por Brayan Joseph
guía de registro de slideshare por Brayan Joseph
 
Global Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft FabricGlobal Azure Lima 2024 - Integración de Datos con Microsoft Fabric
Global Azure Lima 2024 - Integración de Datos con Microsoft Fabric
 
pruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNITpruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNIT
 
Proyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptxProyecto integrador. Las TIC en la sociedad S4.pptx
Proyecto integrador. Las TIC en la sociedad S4.pptx
 
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
POWER POINT YUCRAElabore una PRESENTACIÓN CORTA sobre el video película: La C...
 
Presentación guía sencilla en Microsoft Excel.pptx
Presentación guía sencilla en Microsoft Excel.pptxPresentación guía sencilla en Microsoft Excel.pptx
Presentación guía sencilla en Microsoft Excel.pptx
 
International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)International Women's Day Sucre 2024 (IWD)
International Women's Day Sucre 2024 (IWD)
 
9egb-lengua y Literatura.pdf_texto del estudiante
9egb-lengua y Literatura.pdf_texto del estudiante9egb-lengua y Literatura.pdf_texto del estudiante
9egb-lengua y Literatura.pdf_texto del estudiante
 
Trabajo Mas Completo De Excel en clase tecnología
Trabajo Mas Completo De Excel en clase tecnologíaTrabajo Mas Completo De Excel en clase tecnología
Trabajo Mas Completo De Excel en clase tecnología
 
CLASE DE TECNOLOGIA E INFORMATICA PRIMARIA
CLASE  DE TECNOLOGIA E INFORMATICA PRIMARIACLASE  DE TECNOLOGIA E INFORMATICA PRIMARIA
CLASE DE TECNOLOGIA E INFORMATICA PRIMARIA
 
Redes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdfRedes direccionamiento y subredes ipv4 2024 .pdf
Redes direccionamiento y subredes ipv4 2024 .pdf
 
Desarrollo Web Moderno con Svelte 2024.pdf
Desarrollo Web Moderno con Svelte 2024.pdfDesarrollo Web Moderno con Svelte 2024.pdf
Desarrollo Web Moderno con Svelte 2024.pdf
 

Desarrollo De Web Parts En Share Point2007

  • 1. Desarrollo de WebParts en SharePoint 2007 MisaelMonterrocammonterrocaxp@msn.com
  • 2. Agenda Infraestructura de los Web Part en Windows® SharePoint® Services 3.0 Pasos para crear un WebPart Simple Instalación de un Web Part Seguridad en Web Parts Exponiendo propiedades de un Web Part Web Parts conectables User Controls en Web Parts
  • 3. Recursos Visual Studio Extensions for Windows SharePoint Services, v1.2 (http://www.microsoft.com/downloads/details.aspx?FamilyID=7bf65b28-06e2-4e87-9bad-086e32185e68&displaylang=en) WSS 3.0 SP1 Developer Evaluation Image (http://www.microsoft.com/downloads/details.aspx?FamilyID=1beeac6f-2ea1-4769-9948-74a74bd604fa&DisplayLang=en) Application Development Exams 70-541 TS: WSS 3.0 (http://www.microsoft.com/learning/exams/70-541.mspx)70-542 TS: MOSS 2007 (http://www.microsoft.com/learning/exams/70-542.mspx)
  • 4. ¿Que son los Web Parts? Bloques de códigomodularesque son usadostipicamenteparacrearportales Dan soportepara la personalización Windows SharePoint Services 3.0 (WSS 3.0) incluyevarios Web Parts y Microsoft® Office SharePoint® Server 2007 (MOSS 2007) muchos mas!
  • 5. Historia de los Web Parts
  • 6. Tipos de Web Parts para WSS 3.0 ASP.NET Web Parts Web parts queheredan de ASP.NET WebPart Importadosdesdearchivos.webpart Es el tiporecomendadoparadesarrollosnuevos en SharePoint Windows SharePoint Services v2-style Web parts Web parts queheredan de Windows SharePoint ServicesWebPart Importadosdesdearchivos .dwp Soportadosúnicamente con fines de compatibilidad con SharePoint 2.0
  • 7. SPWebPartManager SPWebPartZone (Left) SPWebPartZone (Right) Editor Zone Web Part 1 Web Part 3 Editor Part 1 Web Part 2 Web Part 4 Editor Part 2 Catalog Zone Web Part 5 Catalog Part 1 Catalog Part 2 Estructura de una WebPartPage Una Web Part Page en Windows SharePoint Serviceses: Una sola instancia de la claseSPWebPartManager Una o másSPWebPartZones El Editor Zones y el Catalog Zones son proporcionadosporWindows SharePoint Services pages
  • 8. Los Web Parts en SharePoint Existe una Web Part Gallery que contiene el listado de los Web Parts .DWP or .WEBPART son agregados como elementos Windows SharePoint Services puede descubrir nuevos elementos desde el web.config Mantienen su metadata .dwp .webpart Web Part Gallery
  • 9. Entorno de desarrollo Microsoft® Visual Studio® 2008 extended with Visual Studio Extensions for Windows SharePoint Services 3.0 (1.2) Existen varias herramientas en CodePlex
  • 10. Web Part Project Proyecto del tipo Class library Heredan de la clase System.Web.UI.WebControls.WebParts.WebPart using System; using System.Web.UI; using System.Web.UI.WebControls.WebParts; namespaceMisWebParts{ publicclassHolaMundoWebPart: WebPart { protectedoverridevoidCreateChildControls() { Controls.Add(new LiteralControl(“Hola Mundo")); } } }
  • 11. Instalando un Web Part Assembly en Archivo BIN en Microsoft® InternetInformation Services (IIS) Web Application Global Assembly Cache Registrar el Web Part como Safe Control en el web.config Poner el Web Part en el site collection Manualmente Web Part Feature SharePoint Solutionautomatiza el proceso
  • 12. Registrar como Safe Control En el web.config de cada IIS Web Application (en cada Front-Web Server) <!– web.config in root directory of hosting IIS Web Application --> <configuration> <SharePoint> <SafeControls> <SafeControlAssembly="AcmeWebParts" Namespace="AcmeWebParts" TypeName="*" Safe="True"/> </SafeControls> </SharePoint> </configuration>
  • 13. Seguridad en los Web Part Los Web Parts cargadosdesde in son restringidos en seguridad Las restricciones de seguridad son controladaspor el Code Access Security Se puedenescoger entre 3 diferentesniveles WSS_Minimum(default) WSS_Medium Full <!– web.config in root directory of hosting virtual server --> <configuration> </system.web> <!-- <trust level="WSS_Minimal" originUrl="" /> --> <trustlevel="Full"originUrl=""/> </system.web> </configuration>
  • 14. SharePoint Solution Paquete (MiSolucion.WSP) que contiene todos los componentes más un script de instalación Web Part assembly Web Part Feature files (CAML + .webpart) Web Part resources Manifiesto que define que hacer con cada uno de los componentes del paquete Visual Studio Extensions for Windows SharePoint Services 3.0 genera todos estos archivos
  • 15. Controles hijos La interfaz grafica es creada en runtime Sobreescribe el método CreateChildControls Crea e inicializa los controles ASP.Net Agregar controles al árbol de controles para que puedan participar en eventos PostBack y manejo de ViewState No existe una experiencia en modo diseño
  • 16. Creando e instalando un WebPart
  • 17. Tecnicas de desarrollo para un Web Part Exponer propiedades Web Parts Conectados Cargar User Controls
  • 18. Propiedadespersistidas Web Parts soporta la persistencia de propiedades Persiste la personalizaciónporaplicación o porusuario Las propiedadespueden ser modificadasutilizando el navegador using System; using System.Web.UI; using System.Web.UI.WebControls.WebParts; namespaceMMG{ protectedstring_nombreUsuario; [Personalizable(), WebBrowsable(true), WebDisplayName(“Nombre Usuario"), WebDescription(“Nombre de Usuario de la aplicación“)] publicstringNombreUsuario{ get{ return_nombreUsuario; } set{_nombreUsuario=value} } //... }
  • 19. Exponiendo propiedades en EditorParts Tool Pane GetEditorParts EDITOR PART ApplyChanges WEB PART COMMONPROPS SyncChanges
  • 21. Web Parts conectados Escenarios Master-detail, busqueda, filtrado etc.. Basado en proovedores y consumidores Windows SharePoint Services 2.0 Implementación de las interfaces (ICellProvider and ICellConsumer) ASP.NET 2.0 and Windows SharePoint Services 3.0 Tu creas tus propia interface
  • 22. Provider Web Part public interface IInformacion { string Texto { get; set; } } Crea tu propia interface Implementa la interface Utiliza el atributo ConnectionProvider public class WebPartA : WebPart, IInformacion public string Texto { get { return texto.Text; } set { texto.Text = value; } } [ConnectionProvider("InformacionBasica")] public IInformacionEnviarInformacion() { return this; }
  • 23. Consumer Web Part Utiliza el atributo ConnectionConsumer [ConnectionConsumer("Informacion_Recepcion")] public void RecibirInformacion(IInformacioninformacion) { EnsureChildControls(); label.Text = informacion.Texto; }
  • 24. Creando Web Parts conectados
  • 25. Qué pasa User Controls? No existesoportenativoparautilizararchivos .ASCX (user controls) Puedesusar ASCXs en páginas ExistencomponentesquepermitenutilizarcontrolesASCXs
  • 26. Preguntas y Respuestas Email : mmonterrocaxp@msn.com Blog: http://squad.devworx.com.mx/blogs/misael Twitter: http://www.twitter.com/mmonterroca
  • 27. Recuerdecompletar el formato de evaluaciónparaparticipar en la rifa de los premios