Hli Archives: Lub ib hlis ntuj 2011

Nrhiav poj SharePoint txuj ci

Ntawm no yog ib tsab xov xwm kuv sau tau rau cov neeg nyob zoo SharePoint theem yus "nrhiav poj SharePoint txuj ci". Tsab xov xwm nws muab ib co tswv yim pab nrhiav neeg yeej zoo thiab kom txog tej thaum uas koj nyob nraum nrhiav lwm tus neeg ua hauj lwm koj yuav ua li cas.

Ntawm no yog ib teaser:

Teaser

Xyuas.

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Thaub qab-SPSite cmdlet twj ywm tsis thaum tuav cov tibneeg Permissions

Yog ib tug neeg rau zaub mov thiab khiav hais kom ib tug boring chaw sau backup ua nrog cov thaub qab-SPSite powershell cmdlet thiab txais qhov yuam kev no:

Thaub qab-SPSite : Yuav nrhiav tsis tau ib tug kwv SPSite Id los URL: …  (tag nrho cov lus sam rau nram qab no)

image

Kuv twb muaj tej teeb meem no neeg rau zaub mov thiaj li ua kuv xav tias cov neeg rau zaub mov raug mob los yog ib yam dab tsi.  Kuv switched rau cov laus stsadm thiab lub sij hawm no kuv tau txais ib qho yuam kev lawm nyias:

Cov sijhawm ua haujlwm no yuav tau rau ib lub computer txuas rau ib tug neeg rau zaub mov ua liaj ua teb xwb... (tag nrho cov lus sam rau nram qab no)

image

tau mas, Nws muab rau tus ua liaj ua teb thiab tag nrho ntawd, tiam sis nws ho tshwm rau kuv tias kuv yog in thiaj li tso maub kuv cov nyiaj thiab kuv nquag teev ua ib zog nyiaj mus rau qhov neeg rau zaub mov.  Kuv puas tau ntawd thiab tus thaub qab succeeded.  Cas kuv yuav nrhiav nthuav yog tias cov cmdlet muab kuv lus trimmed yuam kev ruaj ntseg.  Uas yog hom zoo huv si tiam sis ho tsis pab kuv npaum li cas :) 

<kawg />

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Ncaj nraim mus kaw hauv tsev teev – Cisco VPN neeg

Dhau lub caij ntuj sov, Kuv tsim ib "ncaj rau tsev kaw neeg" sau rau lub thawv txias.  #1 nyob rau daim ntawv yog Lawrence O'Donnell (rau txoj hau kev yuav tsis muaj tseeb), tiam sis yog txoj kev tshaj lub uas duav txhua yam no blog :)  Hnub no, Kuv muab kuv Cisco tus VPN neeg rau daim ntawv, thiab qhov uas yog tau los ntawm ib lub qhov ntswg.

Ib xyoos dhau lawm ntau qhov uas tus neeg tau siv Cisco VPN yuav pab rau tej thaj chaw deb saib lawv lub site Rev.  Ces rov qab, Tsim virtual PCs txhua yam cov neeg thiab ntsia cov Cisco uas nyob rau? Ua li cas?  Vim Cisco locks koj lub cav kom koj txawm yuav tsis tuaj hauv zos network printers, alone let caj yus nyiam Skype, Communicator thiab cov "~" qhov tseem ceeb.  Tab sis npog,  Yog hais tias koj nruab nws rau ib VM, koj VM muab tub mus tab sis tsis koj party. 

Kuv tabtom qhia ntawm cov hnub no los tshaj plaws li hnub no vim hais tias kuv yuav tsum siv ib cov neeg Cisco VPN * dua * thiab nws locks kuv thiab kuv tau siv nyob rau hauv ib pliag.  Kuv yuav theej blog txog ntau npaum li cas nyob hauv kev pab Cisco VPN deserves mus nyob nkuaj es siv...

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

SharePoint Fest – Denver

Kuv mam li muab hais Denver ntawm cov kev tshwm sim SharePoint Fest saum ntuj.  Kuv yuav los tham txog ib qho lag luam thiab kev xav-rau-do's nyob SharePoint Designer workflows thiab outline ib co qauv uas koj siv tau los daws kom tau lawv.

Yog ntau lwm heev nthuav khoom mus ntawm qhov kev sib tham, yog li kos nws: http://www.sharepointfest.com/Denver/

Nws tsis yog ib tug dawb cov kev tshwm sim thiab kuv muaj luv nqi txoj ke, yog li cia ib saib los yog kuv thiab kuv mam li gladly muab tawm ping.

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Siv ib lub kaw lus ceeb toom Pop-up thoob ntiajteb

Kuv thiaj sau tau ib tsab xov xwm rau www.sharepoint.briefing.com txoj cai"Siv ib lub kaw lus ceeb toom Pop-up thoob ntiajteb.”  No muaj nuj nqi DVR rau zej zog college sib txuas lus tsev kawm ntawv kaw vim yog daus li khuav. 

Nws yuav siv ib daim ntawv teev kev cai, mus rau ntawm lub box SharePoint web kev pab thiab ib co jQuery rau cov ua haujlwm.

Ntawm no yog ib teaser:

image

Nyeem tag nrho qhov nov: http://www.sharepointbriefing.com/features/article.php/3918471/Implement-a-Global-Pop-up-Notification-System.htm

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Txuas ntawv teb ntxaij lim dej rau koj cov qhov Web kev cai

Kuv xav tau cov ntaub ntawv los ntawm ib cov ntawv teb lim hauv SharePoint 2010 mus rau kuv qhov web kev cai.  Kuv sim siv no cov tshooj MSDN puas yog pheej tab sis tsab xov xwm yog tog twg los lawm los kuv kuv cia li tsis ua raws li nws kom raug.

Ib me ntsis ntxiv searching nres tsis Mike Smith MSDN tshab ntawm no (http://social.msdn.microsoft.com/forums/en-us/sharepointdevelopment/thread/72F1732A-7F93-441E-8644-2E82BBB153D9).

Yog khoom ntawm connectable Web site yog xeem tawm muaj ntau tab sis yog Mike cov tshooj lus kom raws li nws tau.

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin

Renaming Web Part Namespaces (Los sis, Ib tug tos rau "ib cov qhov Web site Web daim ntawv tswj ntawm nplooj ntawv no ua tsis tau raug tso tawm kom pom los mas)”

Kuv twb tau ua hauj lwm kom tau kuv tus dev npuas rov qab thiab rau qhov tus kawg, ua hauj lwm nyob rau ib qhov project hobby uas muaj cov khoom nram qab no:

  • Connected web qhov uas nws tau txais ib qhov chaw los yog qhov chaw sau URL ntawm ib qho tawm ntawm lub thawv rau cov qhov Web site SharePoint ntawv nyeem lim.
  • Web site qhov no zoo li cov info qhov tus kawm ntawv xaiv, generates ib lub pob XML thiab ob txhais tes nws tawm mus rau lwm lub WP nyob rau sab (ntawm kev sib txuas).
  • 3cov qhov Web site lawm tau txais hauv XML thiab puas muaj ib co XSL txia khoom.

Kuv xav rename qhov chaw sau lub npe ntawm tag nrho cov kev khoom rau cov "Nivlag" thiab kuv twb tau ntaus nrog rau qhov yuam kev li nram no thaum uas cov qhov Web site rau deployed kuv  Kuv lub chaw kuaj:

Ib cov qhov Web site Web daim ntawv tswj ntawm nplooj ntawv no ua tsis tau raug tso tawm kom pom los mas.  Cas yuav tsis nyob los nws yuav tsum tsis zwm zoo li.

Qhov no nws yog ib tug beginner teeb meem tab sis kuv xav tias kuv xav jot cia ib tug faj seeb rau hauv no lawm.  Kuv mob qhov yuam kev no thaum kuv nyob rau lub neej ntawd lub npe chaw right-clicked (uas txog qhov project npe defaulted), Parent Refactor thiab Rename ntawd nyiam li ntawd:

image

Uas cas rename yam uas nyob hauv ib Rev qhov chaw nyob rau hauv peb tes num, tiam sis nws muaj tsis txaus.  Koj kuj tau mus ua ob peb lwm yam kev kho me ntsis:

1. Manually qhib thiab hloov tau ib tug ntaub ntawv, "ShaerPointProjectItem.spdata". Tias ib XML tau thov uas muaj ib tug <SafeControls> seem.  Tsis ras paub txog cov ntaub ntawv no txawm vim txoj kev ua namespace rename, li ntawd, koj yuav tau hloov cov Namespace muaj manually.

2. Qhov ua ntaub ntawv thov .webpart hloov manually.  Txawm vim li, Nrig txog kev pom Studio tsis hloov no siv yog.  Kev hloov cov "<hom>"ntawm kom muaj kev cuam tshuam koj hloov namespace muaj.

3. Ntsig, nyob ntawm seb koj refactored namespace hloov, siv qhov muag saib lub studio kuj muaj tseem tshiab txoj hlua references koj thov no los .ascx li no:

chaw const txoj hlua _ascxPath = @"~/_CONTROLTEMPLATES...

Koj yuav tau hloov ntawd rov qab.  Koj mam li vim koj mam tau txais ib qho kev ua yuam kev xws li nram no thaum koj mus sim thiab ntxiv rau cov qhov Web site kom zoo noj qhov Web site ntawm ib  nplooj ntawv:

Neeg rau zaub mov yuam kev hauv ' /’ Daim ntawv.


Cov ntaub ntawv ' /_CONTROLTEMPLATES/Nivlag/VisualWebPart1/VisualWebPart1UserControl.ascx’ tsis muaj nyob.

Hauj lwm lawm: Kev unhandled zam tshwm sim thaum tus tiav thov web tam sim no. Thov xyuas Tshooj ib txoj lw kom paub ntau ntxiv txog cov kev ua yuam kev thiab qhov twg nws originated hauv qhov chaws.
Kos paub meej: System.Web.HttpException: Cov ntaub ntawv ' /_CONTROLTEMPLATES/Nivlag/VisualWebPart1/VisualWebPart1UserControl.ascx’ tsis muaj nyob.
Qhov yuam kev:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

 

Txhim kho qhov siv muaj thiab koj yuav tsum tau kom mus zoo.

4. Ntsig, ASCX ntawv nqi tseem tshuav ib tug siv (rau kuv) rau cov qub thawj namespace (txoj kev ua refactor/rename tsis txhim kho qhov no).  Koj mam li paub txog cov no yuam kev thaum koj sim thiab ntxiv rau cov qhov Web site ntawm nplooj thiab tau txais cov lus nram qab no:

Neeg rau zaub mov yuam kev hauv ' /’ Daim ntawv.


Parser kev ua yuam kev

Hauj lwm lawm: Ib qho kev ua yuam kev tshwm sim thaum lub caij cov parsing hauv ib qho chaw uas yuav tsum tau muab cov kev pab no thov. Thov nyeem qhov nram qab no parse kev yuam kev txhawb thiab hloov koj cov ntaub ntawv twg paab.
Lus sam yuam kev parser: Yuav tsis ntsaws hom 'RenameNameSpace.VisualWebPart1.VisualWebPart1UserControl'.
Qhov yuam kev:

Kab 6:  <%@ Ntshuam Namespace="Microsoft.SharePoint" %> 
Kab 7:  <%@ Register Tagprefix = "WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version = 14.0.0.0, Culture = nruab nrab, PublicKeyToken = 71e9bce111e9429c" %>
Kab 8:  <%@ Tswj lus = "C#" AutoEventWireup = "nws muaj tseeb" CodeBehind="VisualWebPart1UserControl.ascx.cs" Inherits="RenameNameSpace.VisualWebPart1.VisualWebPart1UserControl" %>

Tau qhov twg los thov: /_CONTROLTEMPLATES/RenameNameSpace/VisualWebPart1/VisualWebPart1UserControl.ascx    Kab: 8


Cov ntaub ntawv Version: Microsoft .NET moj khaum Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Kho kom raug .ascx ntawv ncaj qha thiab txhim kho tus namespace lawm.

Thaum no tus taw tes, Kuv thaum kawg muaj ib feem nyob hauv cov namespace uas kuv xaiv Web site.

</kawg>

Subscribe rau kuv blog.

Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin