Qeb Archives: Uncategorized

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

Kev sib tham taxonomy yuav tsis ploj

Yog ib qho txawv "ziag" hom xov mus ntawm no rau lub MSDN forums: http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/34d11f89-4405-4ba5-b0f0-faa5af6e6ad5/

MSDN Adminstrative nug ntau yog heev "li cas kuv yuav ua [x]"nyob qhov.

Qhov no yog ib lub npe loj loj thiab tej kev tseem ceeb hais txog cov lus no yog moog zoo nkauj nicely hauv xov.

Koom rau hauv kev lom zem!

</kawg>

Subscribe rau kuv blog.

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

Siv txhua paub los kaw kev ncua hauv cov SPD Workflows

Ntawm no yog ib tsab xov xwm kuv sau tau rau www.sharepointbriefing.com. Tus txheej txheem uas peb yeej nyob SharePoint Designer mus laij tsis tau siv ib yam ntawm cov kev ua ub no built-in muab xam-style piav no ib. Cov tswv yim yooj yim yog yuav siv ib daim ntawv teev kev cai li ib lub cav muab xam – txhais tau ib daim ntawv teev kev co thwj, tsim tau ib yam khoom los ntawm SPD thiab nyeem cov.

Ntawm no yog ib teaser:

image

Read ntxiv hais txog nws ntawm no: http://sharepointbriefing.com/features/article.php/3866646/Use-Calculated-Columns-to-Close-Gaps-in-Workflows.htm

</kawg>

Subscribe rau kuv blog.

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

Tsim ib qhov duab Rotator nyob rau kev siv cov SharePoint jQuery

Puag ta, Kuv sau tau ib tsab xov xwm no rau SharePoint theem (www.sharepointbriefing.com) qhia li cas los ua ib qhov duab rotator nyob SharePoint. Ntawm no yog ib teaser:

image

Nyeem ntawv lub tseem Tshooj ntawm no: http://sharepointbriefing.com/spcode/article.php/3861121/Create-an-Image-Rotator-in-SharePoint-Using-jQuery.htm

</kawg>

Subscribe rau kuv blog.

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

Siv jQuery rau tus tub xam tua Spell nyiaj teev SharePoint

Tias "Siv jQuery los tua Spell tub xam nyiaj hauv SharePoint teev" – tus lub npe ntawm ib tsab xov xwm tsis ntev los no ntawm mine uas tus folks nyob zoo www.sharepointbriefing.com muab lo ua ntej lawm lub hli.

Ntawm no yog ib teaser:

image

Nyeem txog li cas thiab vim li cas kuv xav tua tus pluag tub xam txawv nyiaj ntawm no: http://sharepointbriefing.com/features/article.php/3869816/Use-jQuery-to-Kill-Spell-Checker-in-SharePoint-Lists.htm

</kawg>

Subscribe rau kuv blog.

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

Kua: SPD Workflow thiab "daim ntawv yuav tsis tau mus..." Xov

Kuv twb npaj hnub no, muab ua qauv qhia txog SharePoint rau 2010 ntawm kev SPD 2010 workflows. Raws li kuv tau prepping, Kuv ntaus no yuam kev thaum kuv sim khiav ib lub workflow manually:

Daim ntawv yuav tsis tau mus. Qhov no tej zaum yuav tau vim yog ib misconfiguration ntawm Microsoft SharePoint neeg rau zaub mov xeev Service. Xav paub ntau ntxiv, hu rau koj tus neeg rau zaub mov khiav.

Kuv muaj yav tas los teev kuv teb rau ib underpowered laptop thiab sim los pab, Kuv sim tua / lov tes taw ib Rev Services, li:

image

It turns out that the State Service is pretty important 🙂

Kuv reconnected kuv qhov Web site app rau lub xeev qhov kev pab kuv tau paub sai li sai tau khiav kuv workflows.

</kawg>

Subscribe rau kuv blog.

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

Me me lus ntxiv txog cov kev pab hauv internet Passwords Microsoft lub thiab no

Yog mus ua hauj lwm nrog rau Microsoft lub me me ua lag ua luam Productivity hauv internet Suite ob peb lub hlis dhau los, tab sis tam sim no kuv muaj zoo vim yuav tau siv nws.

Yog kuv tseem ua kuv txoj kev nyob ib ncig ntawm nws, ces kuv yuav tau txais tej tus terminology wrong, tiam sis yeej muaj ob tug loj interfaces: lub koom haum saib xyuas chaw thiab cov kev pab tau lawv tus kheej.

Lub kaw lus twb qhia kuv hais tias kuv yuav tsum tau hloov kuv lo lus zais, ces kuv mus tom ntej thiab puas tau tias. Uas pub lawv xav mus ua hauj lwm nrog rau cov kev pab cuam qhov (SharePoint, email, thiab nyob rau lub rooj sib tham). Txawm li cas los, thaum kuv mus rau lub koom haum saib xyuas npo, nws tsis cia kuv nyob rau hauv los qhia kuv tias nws tsis ntseeg tias muaj tseeb kuv lo lus zais.

Cov cwj pwm yog khib me ntsis. Yog tias kuv sau tau cov lo lus zais kuv * xav * yuav tsum muab nws, nws yuav dawb paug tawm cov userid thiab cov lo lus zais thiab qhia kuv cov lo lus zais los twb tsis muaj userid. Yog tias kuv sau ib lo lus zais blatantly lawm, nws yuav qhia kuv zoo li qub, tab sis, kom tus neeg siv daim ID teb lawm.

Kuv twb tau ua si ib ncig txog qhov nov ib me pliag thiab thaum kawg hu ua (yog, rau ib tug thaum sawv ntxov hnub xya). Incredibly, ib tug khub, Ben, tam sim ntawd teb xov tooj. Thiab, Kuv tsis tau sau ib daim credit card.

Ntev dab neeg luv luv, lub koom haum saib xyuas chaw password siv ntau lo lus zais txoj cai tshaj cov lo lus zais kev pab. Lo lus zais Admin yuav tsum muaj alpha, cim numeric thiab tshwj xeeb. Thaum twg kuv hloov kuv lo lus zais admin thawj zaug, Kuv ho tsis ua raws tus cai (yog tsis pub ua nws ceeb toom kuv!). Kuv tau hloov mus rau ib lo lus zais khiav dej num tswj thiab poob rov qab.

Yog hais tias koj muaj cov teeb meem ntawd zoo yav, koj paub tias dab tsi ua haujlwm rau kuv thiab hopefully nws yuav ua hauj lwm rau koj.

</kawg>Subscribe rau kuv blog.

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

Kev xam phau rau SharePoint 2007

Nyob rau lub mid July, Kuv tau muab sij hawm rau author ob chapters rau Brendon Schwartz thiab Matt Ranlett cov phau ntawv los tu, Kev xam nrog rau Microsoft SharePoint 2007: Kev siv daim ntaub ntawv rau SharePoint yuav pab tau cov tswv yim thiab tus Enterprise sis. (Kuv xav hais tias lawv tau sim yeej ntev contest nrog ntawd npe; Kuv xav tias lawv yeej). Kuv dhia ntawd rau lub sijhawm thiab tam sim no, Thaum kawg, tag nrho phau ntawv no thiaj, tom khw muag khoom noj mus txog rau lub ob hlis ntuj.

Raws li SharePoint paub tab zus tuaj, publishers muaj nyav los ua ib tug tshiab yoj ntawm phau ntawv. Phau ntawv no yog ib feem ntawm qhov yoj. Cov yoj no yog ua raws cov dhau los muab cov kev siv manuals dab nta tub ntxhais thiab nws qhov kev siv thiab pib qhia txog kev siv cov nta thiab tso cai kom xa tus nqi lag luam nyob rau hauv ib txoj kev heev uas tsis yog-ces dag. Kuv yuav tsis hais tias yog dab tsi ces hais txog kev siv manuals los yog lawv tus nqi dag. qhov tseeb, ib phau ntawv zoo li no txog kev xam tej zaum tsis tau tau sau ib xyoo dhau los. (Cia, tau kawg nws yuav muaj tau sau ntawv, tab sis, kuv tsis xav tias lub zej zog loj yuav tau npaj rau nws). Nthwv dej tshiab ntawm phau ntawv nyhav los pov plob rau tus nyeem ntawv yeej to taub nta tub ntxhais thiab piav siv rau cov tub ntxhais nta nthuav txoj kev tshiab xwb.

Raws li lub npe plainly hais tias, qhov no yog ib phau ntawv hais txog kev xam. Kev Computing yog ib tug kawm siav rau kev sib sab laj thiab kev tshawb kawm thiab xwb, kev sab laj yog zoo raws li nram no cov adopters thaum ntxov. Cov tuam txhab uas muag yog tam sim no kuj zoo heev rau daim ntawv qiv, cov hom, nrhiav, theem pib workflow, yam. Txaij nim txaij DVR thiab mastered cov mov ci thiab butter nta, lawv yuav npaj rau qib tom ntej. Phau ntawv no muaj cov insights thiab cov tswv yim uas ua thiab yam, exploit tshiab thiab nthuav txuj kev xam theem rau lub ntiaj teb no.

Kev Computing yog ib tug loj thiab evolving kawm thiab siv heev tawm yam, xws li blogs, wikis, kev tagging, nrhiav, sib tham sib tawm, mashups, "neeg," thiab lwm yam lawv-oriented "khoom." SharePoint muaj ib zaj dabneeg heev los qhia rau hauv no arena thiab tam sim no, lub sij hawm nyob rau hauv Internet no & SharePoint keeb kwm, yog lub sij hawm los mus qhia rau nws. Txhua yam uas tau sib npaug ntawm tuam txhab uas muag, cov ntse leverage kev xam yuav outpace mus outgrow cov uas ho tsis. Lub tsheb ciav hlau lawm kom tawm hauv qhov chaw nres tsheb thiab koj tsis xav kom nws nco! This book is your ticket for a seat on that train 🙂

Ntxaib, qhov no yog ib qhov rooj blog pitching phau ntawv. Nws txog caij lawm rau lub ob hlis ntuj no. Tos kom nws nyob ntawm no: Kev xam nrog rau Microsoft SharePoint 2007: Kev siv daim ntaub ntawv rau SharePoint yuav pab tau cov tswv yim thiab tus Enterprise sis.

(Qhia tag nrho — no tsis muaj cov nyiaj royalty nws rau kuv yog hais tias koj xav mus yuav phau ntawv, yog li no tsis yog kom boost kuv tug account, txawm yog hais tias nws zoo sells, nws yuav pab kom paub kuv cov ego, uas ib txwm xav ua ntxiv, ntau tshaj, ntau tshaj!)

Raws li ua ib cag, tab sis tseem ceeb heev ib cag, Kuv ua tsaug Bob hma liab rau kuv siv cov Brendon. Thiab lawm, Kuv ua tsaug Brendon thiab Matt noj tau muab sij hawm rau ib lub newbie xws li kuv tus kheej thiab cia kuv sau chapters nyob hauv lawv cov phau ntawv tseem ceeb heev!

</kawg>

Subscribe rau kuv blog.

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

Ntawv cim npe Technorati:

Siv Delicious.com los mus khiav SharePoint “v.next” Qhia

Raws li kuv nrhiav kev pab nyob rau hauv lub Web site tawm tswv yim txog cov nta muaj nyob rau hauv cov tom ntej version of SharePoint, Kuv mam li yuav ntxiv tau rau kuv qab bookmarks. Nws zoo nkaus li tias Delicious pub rau tus neeg mus sau npe yuav mus ib qho lossis, thiaj li yog hais tias koj nyiam kuv nrhiav, thaum kuv pom nws, sau npe yuav nyob ntawm no: http://feeds.delicious.com/v2/rss/pagalvin/SharePoint_O14?count=15

</kawg>

Subscribe rau kuv blog.

Ntawv cim npe Technorati:

nrog koj zoosiab kawg li, Natalya!

Kuv nyuam qhuav txais lo lus uas kuv tus phooj ywg thiab colleague, Natalya Voskresenskaya yog muab MVP rau SharePoint hnub no. Kuv twb tau koom tes nrog cov Natalya rau luag 18 lub hlis tam sim no thiab nws txiv ib tug zoo deserved Vocabulary. Zoo li txhua tus MVPs kuv paub, Nws yog xav kubsiab ntawm lub zej zog thiab nws ua haujlwm nrog ISPA, cov lwm yam, pab kom SharePoint zej zog yog ib qhov ceeb thiab feem ntau yuav pab tau txhua tus technically oriented siv zog ntawm cov ntiaj chaw.

Congrats!

</kawg>