NTXHUAB neeg Profile raws li txoj cai rau cov neeg siv cov lus xum

Rau kuv qhov project no, qee yam rau cov neeg siv yuav mus ncig lub ntiaj teb thiab thaum lawv txog ntawm destinations sib txawv, siv lub cav txawm yog ke thaum lub sij hawm. Cov cav tov qhua yuav tsum khiav qhov rais ntsia thiab configured rau qhov chaw nyob. (Kuv twb nyuam qhuav pom tau hais tias qhov cov cav tov qhua yuav tsis muaj tus zoo lus packs… ntshe yuav tsis, qhov tseeb… Kuv tabtom nres tsheb ntawd ib tug tamsim no).

SharePoint yuav tsum tau muab ib tug mechanism whereby tus neeg siv yuav khaws lawv cov lus dua thiab muaj tsim ntawd hais lus tsis hais seb tus neeg accesses NTXHUAB NTXHUAB. Hauv, xijpeem qhov browser qhia IIS/NTXHUAB disregard xwb saib ntawd dua lus thiab siv txoj kev no.

Peb mus soj ntsuam ob le caag:

  1. HTTP Handler: Ib tug kev cai HTTP handler ntsia rau IIS yuav nrhiav tau tus NTXHUAB profile, xyuas seb cov lus dua thiab mam li hloov ntawm HTTP header ncig raws li xav tau ua ntej dua tswj kom NTXHUAB.
  2. global.asax: Hloov global.asax ua tus qub tshaj plaws. Peb yuav hloov ib yam dab tsi, tab sis, tsab cai idea yog tias peb nrhiav tej qhov chaw uas peb yuav ntxig tau logic uas muaj chaw switching peb.

Tus lwm chiv tau yog hais tias peb yuav tau yug 60k cov neeg, hais txog 1,000 kev uas tej zaum yuav ib txhij txheejtxheem NTXHUAB hauv ncov thauj khoom.

Ntawm HTTP handler nkawd zoo nkauj drastic, tab sis muaj lub zoo chaw teeb tus vim nws tseem nyob theem IIS thiab paub txog tagnrho. Nws yog ib tug zoo ib txoj hauj lwm.

Peb nyob nraum leaning mus rau ib tug mus kom ze tej global.asax, mas vim peb ntseeg tias peb yuav muaj yog xav paub ntxiv txog caching tej ntaub ntawv li ntawd txij.

Kuv yuav ua blogging ntxiv rau qhov kawm raws li kuv paub ntau.

Yog hais tias koj tau paub dab tsi txog qhov no, thov rooj vag ib saib 🙂

</kawg>

Subscribe rau kuv blog.

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

Ntawv cim npe Technorati: ,

4 xav txog"NTXHUAB neeg Profile raws li txoj cai rau cov neeg siv cov lus xum

  1. Jaap Vossers

    Kuv muaj tsis mus kuaj no ces kuv tsis paub tseeb tias nws ua haujlwm.

    Cov chav kawm ntawv uas tsis yog Page lawm ib InitializeCulture() txoj kev twg thiaj yuav overridden. Yog koj ua li no nyob rau hauv qhov chaws qab ntawm koj cov kev cai masterpage, koj yuav ua ib yam dab tsi txog cov kab kev:

    override tiv thaiv tsis muaj dabtsis InitializeCulture()
    {
    // override txoj kev virtual InitializeCulture() xyuas seb yog profile muaj ib tug neeg hom lus teev
    kaj UserCulture = GetCultureFromUserProfile();
    Yog hais tias ( UserCulture != "")
    {
    // yog ib tug neeg siv lus chaw ntawm lub profile: hloov mus
    Thread.CurrentThread.CurrentUICulture = CultureInfo tshiab(UserCulture);
    Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(UserCulture);
    }
    }

    Obviously koj yuav tsim ib co caching rau qhov yuav ua raws li cov qauv no.

    Tau qhov twg los: http://quickstarts.asp.net/QuickStartv20/util/srcview.aspx?path=~/aspnet/samples/localization/LocalizePers.src&cov ntaub ntawv = LocalizePers_cs\LocalizePers_cs.aspx&lang = C % 23 qhov

    Teb
  2. Yaunathas

    Kuv tabtom xav HTTP handler nrog cov nram qab no txaus:

    1. Thov kom ua li nyob rau hauv, xyuas cov ncuav qab zib muaj kua nplaum uas qhib rau cov nyiam hais lus (ncuav qab zib los ntawm sib kho expire thaum kaw qhov browser)
    2. Yog hais tias thov kom yog rau ASPX phab saib, nws tsis yog, hla kev thov
    3. Yog tias cov kua nplaum uas tshwm sim, teev cov hom lus header rau cov nqi uas teev. Koj yuav ua li cas!
    4. Tsis muaj cov kua nplaum uas, noj cov authentication muab thiab saib tus neeg siv nyob rau hauv SPS, nrhiav lus xum
    5. Muab cov kua nplaum uas header thiab HTTP lus header. Ua li cas.

    Thawj APX nplooj ntawv thov yuav muaj nyiaj siv ua haujlwm ntawm SPS lookup, tiam sis txhua thov txij ces mus nrog muaj tsis lookups thiaj li yuav tau ceev haiv. Tsis xav tau kev sib kho cache los yog muaj lwm yam nyiaj siv ua haujlwm uas siv ib lub kua nplaum uas qhib dhau. Thaum kaw qhov browser, cov kua nplaum uas qhib ploj. Yog hais tias tus neeg siv cov kev hloov lawv lug xum nyob rau SPS lawv nyuam qhuav tau kaw thiab rov qhib qhov browser kom nws yuav tsum txais.

    Teb
  3. sedi

    ua tau ntawm http handler tsis yog theem iis…Nws yog ntawv theem (ISAPI lim IIS theem no)…Kuv yuav ceev faj bc SP tau nws tus kheej handler…yog li yuav tsum kuaj kom paub…Kuv tau ua ua ntej nws tab sis twb muaj ib co teeb meem nrog rau lub handler SP.

    Teb
  4. Danias

    Kuv yuav tsum inclined yuav siv lub HTTPHandler, vim li cas tsuas yog tias kuv tsis nyiam kov cov cov ntaub ntawv SharePoint. Ntxiv rau nws yog ib qho yooj yim uas tsim SharePoint tov rau deploy ib HttHandler ( thiab siv SPWebConfig API tus los hloov tus web.config). Koj coj cov neeg siv load ua, Kuv xav xav txog tej yam koj muaj ib daim teb loj tsawv, koj yeej tsis xav mus ua ntaub ntawv modifiying rau txhua tus neeg uas muaj rau zaub mov.
    Deploying global.asa cov ntaub ntawv ntawm ib cov tshuaj yog ib lub tswv yim phem, Yog hais tias koj nkaum, koj cov ntaub ntawv yeej yuav ploj mus …
    Tseem muaj lub peev xwm los nkaum hauv tshuaj sai heev tej zaum yuav ib lub tswv yim zoo, nyob rau hauv rooj plaub yam uas mus tsis nrog lub perf ntawm cov handler.

    Teb

sau ntawv cia

Koj email chaw nyob yuav tsis muab luam tawm. Search cim *