Your SlideShare is downloading. ×
0
SharePoint 2010How To: Visual Web Part 1<br />Eng. Ismail Enjreny<br />Development Manager  - SURE<br />
About.<br />Visual web part definition.<br />How to create Visual web part.<br />Visual web part - Namespace.<br />Visual ...
Development Manager - SURE<br /> My Blog: http://SharePoint4Arab.blogspot.com<br />Learn SharePoint 2010 book – Author.<br...
Inherits WebPart class<br />System.Web.UI.WebControls.WebParts<br />Use VS 2010 templates.<br />Depends on ascx (UserContr...
Visual Studio 2010 templates.<br />SharePoint 2010 - Project template.<br />SharePoint 2010 - Item template.<br />How to c...
Open Visual Studio 2010<br />File  New  Project<br />SharePoint – 2010  Visual Web Part template<br />Project template ...
Right click on SharePoint project.<br />Add  New Item  Visual Web Part template.<br />Item template (cont.)<br />7<br />
Why?<br />Code enhancement.<br />web.config readable.<br />How?<br />Change web part namespace.<br />Change user control n...
Why?<br />To organize your web part files.<br />Visual web part Group<br />Change <Property Name="Group" Value=“YOUR_GROUP...
Why?<br />Configurable Visual web part.<br />More flexibility.<br />Add public property to web part class.<br />Pass the v...
Why?<br />Support multi languages.<br />How?<br />Mapping to resources folder under 14 folder.<br />Add resource files.<br...
Questions?<br />Please ask <br />12<br />
Thank you<br />13<br />
Upcoming SlideShare
Loading in...5
×

SharePoint 2010 Visual Web Part

5,491

Published on

Published in: Technology, Business
1 Comment
0 Likes
Statistics
Notes
  • Very informative slides. Really its clear my doubts. Thanks for sharing with us. I have found another nice post with wonderful explanation on sharepoint over the internet which is also helped me to complete my task.
    http://mindstick.com/Articles/9e1d1fe1-7e51-4d01-86ec-f1f679631a7e/?Create%20and%20Deploy%20Visual%20WebPart%20in%20SharePoint%202010
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total Views
5,491
On Slideshare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
37
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "SharePoint 2010 Visual Web Part"

  1. 1. SharePoint 2010How To: Visual Web Part 1<br />Eng. Ismail Enjreny<br />Development Manager - SURE<br />
  2. 2. About.<br />Visual web part definition.<br />How to create Visual web part.<br />Visual web part - Namespace.<br />Visual web part - Location.<br />Visual web part - Public properties.<br />Visual web part - Localization.<br />Questions.<br />Agenda<br />2<br />
  3. 3. Development Manager - SURE<br /> My Blog: http://SharePoint4Arab.blogspot.com<br />Learn SharePoint 2010 book – Author.<br />SharePoint 2010 MCITP.<br />Abouts<br />3<br />
  4. 4. Inherits WebPart class<br />System.Web.UI.WebControls.WebParts<br />Use VS 2010 templates.<br />Depends on ascx (UserControl).<br />Easy to use.<br />Visual web part<br />4<br />
  5. 5. Visual Studio 2010 templates.<br />SharePoint 2010 - Project template.<br />SharePoint 2010 - Item template.<br />How to create Visual web part<br />5<br />
  6. 6. Open Visual Studio 2010<br />File  New  Project<br />SharePoint – 2010  Visual Web Part template<br />Project template (cont.)<br />6<br />
  7. 7. Right click on SharePoint project.<br />Add  New Item  Visual Web Part template.<br />Item template (cont.)<br />7<br />
  8. 8. Why?<br />Code enhancement.<br />web.config readable.<br />How?<br />Change web part namespace.<br />Change user control namespace.<br />Modify type element value in “*.webpart” file.<br />Modify Namespace value in “SharePointProjectItem.spdata” file.<br />Visual web part - namespace<br />8<br />
  9. 9. Why?<br />To organize your web part files.<br />Visual web part Group<br />Change <Property Name="Group" Value=“YOUR_GROUP" /> in Elements.xml file.<br />Visual web part files location.<br />Change _ascxPath value in web class.<br />Change user control deployment target in “SharePointProjectItem.spdata” file.<br />Visual web part - Location<br />9<br />
  10. 10. Why?<br />Configurable Visual web part.<br />More flexibility.<br />Add public property to web part class.<br />Pass the value of public property to user control in CreateChildControls method.<br />Visual web part - Public properties<br />10<br />
  11. 11. Why?<br />Support multi languages.<br />How?<br />Mapping to resources folder under 14 folder.<br />Add resource files.<br />Replace the text you want by resource expression.<br />Visual web part - Localization<br />11<br />
  12. 12. Questions?<br />Please ask <br />12<br />
  13. 13. Thank you<br />13<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×