ASP NET+˛ŹýŹą+Ź=°++L+ŹŇ ńŇż


E{|śQHrir 6R\OśQT _fYMQ9ć5uP[echDćeżwww.epubcn.com
ASP.NET Sb łNTQ*gegzzŁz
b/gŻŚŚ
Yśg`O]~ wŹbNMRb"vŁNeąz, ` gSż]~b_bąNŁŹ7hN*Nó`l:.NET/f_oŹlQłS^8^ę
"vbeuce _oŹlQłSck(Wą9ć'Yę"veŚT|RRR%"ś^[0vQ-N .NET "vN*N NS:\"vŁR/f
ASP.NET0s(W bNegŚNŚASP.NET"vSO|Ó~"g w w[/fYUON.NET"vteSOśg"gOSŚ]\O"v N
ĘSYUO)R(uASP.NET_ŃS'YWQŁzŁ7h"vN0
bN]~ZPASP.NET Nt^ąN0bNR_Y;N/fxvzASP0O@bhTw ASP/f*Nś^zQ~"^(u^8^
bźR"vs^S bNxvzASP;N w w[ gNĄNHNN"vnx_N/fbNąąNNt^JS"veŹL4YŚf_"vĆ
SOx żNuó`lv^_Yś^ ŁŹ7h1\żNuąNASP.NET0
dkY bNgŃŹ\ASP+"v TW[9e:NASP.NET0
`ONŁŹ7hZP"vnxRźSąV/fĄNHNŁŹ7hZPSasT@wĄNHN
.NET"vwćąV/fYąeb"v kY\oŹNcGS:N gĄRkYXMLŚTweb gĄR NN(uNNSZP0R"vąe
_śX:_ąNłNTQ"v'`ż0bNyKN:N ASP+"vN/f(WbN g.NETKNMR}T T"vNće.NET TW[śQeg
bN1\\["v TW[ŚT.NETśg"g'}Ć[T|(WNwćąN0bNSNŁŹHNń:N [/fASP"veHr,g,v^N'}'}0WO
VćNbNŚ"v.NET"gśg"v@b gN0ĆQnx0W/fŁŹ7h"v0
FO/f bNń:NsQNASP.NETę"v/f [v^ N/fbNbąNegęASPHQMR"vHr,g"vćNx \[y i
0R.NET N bN.NETłvÓ~T0bNwckN^B\Rś^ąN[0ŁŹ/fNy{_^ N T"vćNx ŁŹ/f(WbNą9ć
3t^e@bcśQeó`l"vśW@x N /f(Wcommon language runtimeśW@x N /f(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gY\^X[ b\ŹŹŁ~`ON*NŁ*N{|+R"v@b gżNTRhkY,Yśgb/fŚTBg'ćFU^`O
Tb[rvY"vOo` b\Ł~`ObVS"v[rvY"vhQŁ N T"vy{|Oo`0
`O(WASP+-NZPŁŹNNS_6q Nw"va`/fó`ASP.NET "vąel/f:`ONN(uVB, C#QN*N{|
{| gN*NąelkYS_{|+R v^NNŹS+T{|+R TW[0Ąc Neg [żŹLgSQL SERVERpenc^
bNUOXMLpencn bpenc&^V0ŁŹ*NŹ zś[E
N N_ńwQąlŹbcbXMLŁŹNN`0ASP.NETOę
RŚ[bXML"vlŹbc]\O0
ąVdk bNżYęR0W\N*Nxml payloadlŹbcbN*Ntepe06qT Yśg`OŹVN*Nrecords set"ve
P bN\ęR0WYtrecords set v^\NSbXMLpencAm0ąVdk (WASP-N N_ NZP"vŁNN`Kb
]RgXML Kb]\HTTP"vQą[lŹbcbł[ XML payload"vżv^RgN ŁŹNŹ zżęR"vŚ[bąN0
bN(WvQ-NcOR`"v~ńbcontractżR0Contract;N(uegćĘęYUOŚ(uweb service "v0ąV
dk`OSN_ą[f"v OŁŹ*Ncontract0RvQNŁząp NąN vQNŁząp_NSNvĄcł[`O"vŁząpŹL z0
bN"vQŁz\OąNN*N_ gŁć"vOP[ cOąNN|R"vŚ(u ASP+sS ASP.NET "vOP[ NNc
O"vweb service/fAQvQNASP.NETŁząpR>NŁŹ*NŁząp(WgN)YQ"v@b ge"vOP[0ąVdkŁNŁz
ąpSNó
ŁŹN gĄR v^NSNł[ŁŹNweb service z ĉ[NN/fN)YN!kŹ/fN*N\eN!kS
QŁzfe"vŁNOP["v"ĄcRh0
ŁŹ7heg ł[N(u7beg NNĄl g_QąNOmȉhVbwebuŚbSbńNS"vŁŹNN` NNvĄc
Źweb service1\SNżłNTQąN?
/f"v FO/fŁ\/f web service"v}Y"vŹof ŁebN\OńĆ0R łNTQś[E
N/f@b gOo`
"v;`ŚT0bNf~:NąNżONNNOmȉcOąN(WOmȉhV-N>f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gŹLŹ/fEea N cgqó[7bz,gŹLI{`Q v^
NSN_}Y0Wżc6RŁŹNR0`O@bZP"vęS/f(W`O"vuŚb-NŁ[^ŁŹNżcN:N4!'3 6qTQ N2 3LP(u
NNYt"vćNx `OżOb gąNN*NŚ[te"vnxńuŚbąN0
`O"vęS/fNNśW,g"vnxń NN/ecł[peW["vnxńT
/f"v gN|R"vNbN/ec0bN/ec5uŻSx0?exI{łvsQ"vN0bNOG0R_Y"v
ŚŚ gePnxńmeQ"vN/f N/fpeW[ gePNNmeQ"vpeW[9SMęNNĉR"vhŹ_ gePmeQ
"vpeW[nłćN["vLuP
"vP
6R0
ŁŹNBl/fSibU\"v bN1u,{ NąeSś[egNNŁŹąeb"v]\O0vQ-N ,{ NąeSś[ZP"vNyŚ]\O/fsQ
N?ex"vnxń0`OSN(WN*NuŚb"ve,gFhębO(uŁŹynxń N\$Re`OŹeQ"vpeW[/f&T/fN*N g
He"v?ex ąVdk`OSN(WY N T"v:WTO(uŁŹNnxńźRż NNSNO`fą[fQuŚb zŹ^0
ś[E
N Ś[hQ~NS"v|~AQ_ŃSNXTŚT,{ Nąe"v]\ONXTąQNN(W|~"vNUON*NB\bceQNN"v
ćNx ŁŹ/fbNN*Ng'Y"viece0bN8^,TO(uASP"vŁN_ŃSNXTŹ"vNNN`bśU"kASP
b_śU"kSession StateŁŹ7h"vN FO/fb ^gNSN]\O(WWEB FARM N0OYNNO b
YUOO_N]\O(WWEB FARM NT{Hh/f (WASP"vŻsX-NŁ/f NSż"v0FO/f(WASP.NET-N
bNSNO_Session State]\O(WWEB FARM-N ąVdk`OSN=\`"vO(uąN0dkY Yśg`Oó`Ś[
hQSćNSession State`O_NSNZP0R`Oó`O9eX[ŹśQ"vąel `O_NSN{Ź~gZP0R ąV:Nte*N|~/f
~NS"v0YśgŹ gNcśQ =\Ą{bN"vśU"kresponse 0 request0sessionNĘSNNNłvsQ"vŁŹ
N"^(u FO/fbŹó`(WISAPIŁŹ*NB\bZPfY"v]\O0b"^勂YUOSś[sbTT{Hh/f (WASP-NĄl g
śRlś[s ąV:N@b g"vN`ż\ň(W ASP|~-N0Ąl gśRlŹ0RŁŹHNNO"vż~+R-N FO/f Yśg`Oę(u
ASP.NET"vŻ 1uN[/f~N"gśg"v|~!jW @bN`OSNZP`Oó`ZP"vN`0
U (W`OcĘSISAPI"veP bó`wćąN(WISAPI"^(u-N g$NyŚ[hQ N T"v!j_ISAPI"^(u!j
_ŚTISAPIŹnhV!j_ ASP.NET/f&T/ecŁŹ$Ny N T!j_
/f"v N/ecŁŹ$Ny N T"v!j_0
bSNó`aŚN/fYUO/ecASP.NET"^(u!jW"v
SN_N(uISAPIŹnhVZPNNN`T
/f"v N_N(u[ZPNNN`0bN_N/ecNySZP ASP!jWWibU\ąp"vb/g0NśW,g NAQ`OPN*N
5
E{|śQHrir 6R\OśQT _fYMQ9ć5uP[echDćeżwww.epubcn.com
żQpeŁ7hO(uISAPIŹnhV0bNcĘS"v_YOP[ YfbcSession StateI{]\Oż/f(WŁ*Nż~+Rś[
s"v0dkY ę[TURL"v]\O_N/f(WŁŹ*Nż~+Rś[s"v0OY bN"vYó[7b~8^:NNN"v(u7bc
O *N '` S "v URL P financial institution Łz ąp 1\ S N :N N "v ~Ś ó[ c O
www.financialinstitution.com/scottŁŹ7h"vURL:NN*N TSSCOTT"v(u7b ąV:NNN Nó`R
ś^*Yf>f"vć"_ @bNP(uę[Tb/gcOTyT7h"v NSĆ"vURL `OSN(WASP.NET Nś[sŁŹ
7h"vźRż0
&^ g"/scott" URL ś[E
NASP.NETlŹbcbNS"v0Wąe /fT
/f"v ąVdk(Wś[E
ŹLMR `OO gNNćNxćg"/scott" ŁR lŹbcbN*Nś[E
0W@W"vuŚb ś[
E
gbL"v/fN*N_nf"vuŚb0ŁŹyąe_SNO_@b g"v(u7bż_0R*N'`S0bN gN*N!jWW-N"vN*N
APISN:N`OćłQŁŹ*NŚŚ0(WŁŹ*NŚŚ N bN_N gN*NibU\ąp0(W ASP"veP bN gN*NSZP
Global.asa"vi_ NSN[IN"^(u_Y "^(uÓ~_g Session _Y Session Ó~_gI{NN0(W
ASP.NET-NbNAQ`\ISAPIŹnhVźRż ReQGlobal.asa-N ąVdk Yśg`ó`~~ę[TURL
eP `Ouó NQN*N!jWWąN `OęS(WGlobal.asa-N[IN1\łćYąN0
bNZP"vćSNąp/f RRcؚ[hQ4ls^v^NAQf:Nup;m"vń (WŹS `O(uASP"veP `
;N(uIISeg"gś^`"vńźRż ŁŹyńś[E
NOVćNT SAM (WASP.NET-N bN\[hQ!jWW>e
eQISAPIŹnhV-N ąVdkYśg`ó`(WN*Nmain frame b(W`O gNNusernames/passwords
"vpenc^-N v^N/f`Oęń]ZPŁŹyńe `OSN(WGlobal.asa-NQeQłvsQ"vOo`b(WN*NNŁ*NN
N Tek"v~N-N ReQłvsQOo`0
ąVdk bSNQN*Nbęń](u7b T"vpenc^ąN v^N NŹ&^ ghĆQ"vńŹ z0
/f"v Ąl0Yśg`OŁŹ7hZPąN `OSN_fY"vN `O NNSNb gąN(u7b TW[ŚTćSN NŹ
O g҉rrole ŁŹ7h"vN0`OSN\ŁN(u7b f\b҉r `OSNO(uŁŹyąe_ N/fNNO(uACL
"vąe_"gś^`O"vŁząp0`OSNwSJoe ŚT Mark(u7b T żąNŁŹ*NuŚb łvS `O_NSNwSŁŹ*N
uŚbęT*N҉rżąN0`O(Wpenc^"v;N]\O1\/fJTɋbN Mark "v(u7b TŚTĆśx/fĄNHN N(WęTN
~҉r-N vQYO"v]\O1u[hQ|~egQą NŻO[SNżŁNQuŚb gĄR0S_6q ŁŹęcĘS"v
/f @b g"vśg"g [hQśg"g0cachingśg"gż:NQuŚŚTXML gĄRcO/ec0
YśgN'`ż҉Ś^eg w śX R"vŁŹNN ŁŹNżR SNcOf}Y"v'`ż gĄRT
bN"vnxcOąNf}Y"v'`ż gĄR S_bNRś^ ASP.NETyŚv~e bN1\c[N*N_ŃSNXTNŁ
ć#ć'`ż N"v]\O bNS_eO(u"v/feg"vcommon language runtime Nke"v]\O1\/fĄhg
6
E{|śQHrir 6R\OśQT _fYMQ9ć5uP[echDćeżwww.epubcn.com
kyŚd\O/fS_ąNŹ/fSbaąN v^NNŹLe(runtime)yŚv~Nwćg~bŚŚ RSbaąN"vd\O0 T
e N_NcśQ'`ż N"vŚŚ0ŁŹ7hZP"vÓ~śg/fASP.NETkASPf_0@b g"vćNxż/fŃŹ"v 
Ńb,g0WćNx NćQ(ućĘę"vąe_0
/fT ŁHNb(WASP.NET-NQ"v zŹ^ćNxćQ_N N(ućĘę"vąe_
cknx0dkY f}Y"v/f `N6qSNP`NMRŁ7h(WęŹhVębQćNx ąpQSAVEX[v 6qT
iR N"vN`żńNŁ~|~SYt0FO/f ł[NiR N]\OASPNASP.NETnx g N TYtąe_0ASPę(u"v
/fRgćNx6qT OŁ~,g_d (W zŹ^ŹLećĘęćNx ASP.NETR/f OŁ~ŃhV 6qT(Wcommon
language runtime NŹL0(Wcommon language runtime NgbL"v/f,g0WćNx ąVdk`OSN
(uVB6R zŹ^_NC++N7hż~+R"v'`ż0
ŁHN [/f(WĄNHNePŃ /f(WbX[PeNv^NNTeN|~ŃSseNSSe Ź/fuŚb,{N!kO
(u"veP
S_gNBluŚb"vePŃSu0bN\OĄhg /f&Tg*NuŚb]~Ń YśgĄl gŃ bN\O
ŃN0bN(WASP.NET-N\OąNY_ gŁć"v]\O O_ŃŹ zf gHes0ąV:NbNŃąNN @bNY
śg`O:NąNO:ghVfS`b'`żf}Y ęwć:ghVbshut down`O"vWEB gĄRhVbshut down
`O"vŹ ze `O N(ućQŃ`O"vŁ*NuŚbąN ąV:NbN]~ĄhKm0RąN勇eN]~ŃŚT R}Ź ŁŹ7hSN
_fؚ"vT"^Ś^ŚTf:_"v8O)'` v^NŁ_N/fąV:Nb[>e(WCACHE"vg*N0WąeąN0
NbbN(WŚN N'`ż0}Y bNŚN N'`ż /f"v NteSO N w '`ż/ffOSąN0bN_N(WSib
U\'` S`'` SS'`ąeb\OąN_Y"v]\O0bNf~ gN*NGP (WN*N common language
runtime N sSO gN*NSessionó`ŚT@b gNNłvsQ"vNO"vŻ "^(u zŹ^"vS`'`N6qS__
ؚ0
bNŹSN>NNOP[0OY wck:_'Y"v{|WĄhg0(WN*NSĄ{t"vŻsX-N YśgśQspe~ćLu"v`
Q |~\ObśQN*Nexception NOżNuN*NW>WQX[0d
dkKNY bNŹ gfY"vS`'`:g6RŻO
`"vO(u0OY bNSNĄhKmQX[Qz _N1\/fQX[(WgNąpŚ__0bNSNĄhKm0R{k `OuóS
NMęn|~NżO(WŃSuŁŹ7h"v`Q"veP `O"v:ghVSNk"
YeęwćN!k0ąVdk (WśQsŁŹ7h"v`
Q"veP bNSNĉ[N\eN!k0N)YN!kbk"
200*NBlN!kI{eg/TRN*N"^(u zŹ^"ve"v
ś[O06qTAQe"v"^(u zŹ^Ś[błvsQ"vNĄRT e"v zŹ^Ąc@wŹL0
ŻOcŁŹ7h"vN*NS`'`:g6RO_`O N_-NeNUO:N(u7b]\O"v gĄR0bN\OR`0WubN*Ne"vŹ
z _YĄcSe"vBl "vŹ zŚ[bS_MRŹL"v@b gBl 6qTbN\ Rd
"vŹ z0(WŁŹ7h"vŹ z-N
7
E{|śQHrir 6R\OśQT _fYMQ9ć5uP[echDćeżwww.epubcn.com
:NąNcؚHes |~ś[E
N\OąNRESET"v]\O0FO/fŁŹ*NŹ z-N `O NO wĄ{tNXT"vr^m0`O"vó[
7b_N NOaɉ0RNUOSS NNOń:N U kNNN`żŹL"vŁŹ7h}Y gĄRhVŹ(WŹL0(uŁŹ7h"vąe
_ `O1\SN_^8^ؚ"vS`'`0
dkY bN(WSession State N_N gąNNN9eŹ Session State NćQŚT`O"vćNxŹL(W T
N*NŹ z-N0NSN\O:NNy gĄRŹL(WNS:ghV N _NSN\O:NNy gĄRŹL(Wte*NWEB gĄRhVń-N
"vgNS:ghV N vQN"vMRz:ghVSNqQN gĄR0
Session StateęSżX[>e(WNS:ghV NT
N N/f"v Yśg"vŻSN(WYS:ghV NŻOYu0Session StateSN(WYS:ghV NX[P _NS
N gYS:ghV"vMRzSżŁNX[POo`0
b/fN*N(u7b bck(WżNS:ghV b"vSession StateYu(WŁŹS:ghV N Yśgb NN!kż
ćSNS:ghV Session State-N"vpencSNqQNT
/f"v ŁŹy]\Oąe_/fWEBń~gxQW"v]\Oąe_0N*N(u7b`OSNż:ghVA I{NO?Q `OS
Oż:ghVB `O"vSession StateŻOYu(WćSYNSrz"v:ghV N0Session StateeSNŹL(Wb
N"vSession State provider Nb_NSNŹL(WSQL Server Nb bN gNyąe_SNSQL
Serverb:NSessionOo`"v gĄRhV0FO/f MRz"vŁŹ$NS:ghV _NSN/fYS:ghV żSNż T7h
"vSession State0
ŁŹ7h weg bNSNŹŁŹyąe_qQNpencąN0
/f"v cknx0FO/f`OSNó`aŚNće`Ob gŁŹySession State,N`O"vASPćNx N(WN*NŹ z-NŹ
L"vSession State ąe`O"vASP zŹ^G0R NbĄNHN7h"vŚŚ zŹ^)]n0bN~bkąN`O"vćNxŹ
L0bNĄhKm0RgyDćnombś0bN@bMęn"vNNN`OYN\eN!k G0RŚŚe `O@b g
"vSessionO6q/f[hQ"v0ąV:N `O\`O"vSession StateŻOX[(WćSYNSrz"v:ghV NąN0
Yśg`OęS gNS:ghV `O_NSN)R(uSession State"vŁŹyyrąp `OSNNŹL"vŹ zN`O"vćN
xŹL"vŹ z N T ąVdk ęSŹ z0Rege NN1\SNż(W[hQŻOńbŹ z-N"vSession State0
ckYbNRMbc0R"v Session Stategę"vąQ*N}YY/f1 S`'`0`O N(ućQb_`O"v"^
(u zŹ^)]nbN*N(u7bpenc"N1YŁŹ7h"vN`ŃSu02 ,{ŚN*N}YY/f s(W `O"v"^(u zŹ^ N_ćQ@\
P
NNS:ghV0Yśg`OO(uąNSession State `O"vnxSN\`O"v"^(uibU\0RfYS"v:ghV N ŁŹ7h
8
E{|śQHrir 6R\OśQT _fYMQ9ć5uP[echDćeżwww.epubcn.com
1\w"vĄl gĄN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ve"vyr_0_NSż NNN/fy i"vŹ zŹ gNąpąpęś^"vŹ z0OY
bN(WMRbc0RąNnxń"vŹ z 'YYpe"v"^(u zŹ^żSN(u0R N T zŚ^"vnxńŹ z0FO/f N\ NćQ/f ŻO
Yu`OźSeg"vnxń;ęŹ v^NNŹL"vf_NN /f Ś[hQbN"vnxń~N@bfćN0
YNż]~(uASPś^ząNNNęń]"vgy[hQśg"g NNSN(u[egŚ{vU_Oo`0s(WS_NN
wSASP.NET&^ gŁŹyźRż/f NNO ŁŹ NS}YąN bSNvĄcO(uASP.NETQL]"vńźRż
ąN (W_N N(ubęń]"vŁNN NćQ(uSession Stateć*(u7bOo`0
Caching/fN'`żłvsQ"v"vNyŚę"vźRż bMRbĄl gcĘS Y"v_ŃSNXT^8^RRv^NO(u
ąN_Y"v^8^}Y"vb/gՋV_f}vN*NuŚb"v@\Łb gĄRhV N"vte*NN*NuŚb"vŹLÓ~śg NżOS_$N*N
OmȉhVBl TN*NyrkDćne N_ęeub$N!k bęSO(ucache-N"vHr,g1\SNąN0(W ASP.NET
-N bNcOąNN*Nł[cache"v/ec0
bó`"vśW,g_N1\ŁŹN FO/fbń:NNN/fN g'YŚ~ 900eg*NOP[ ŁŹ/fN*N_'Y"vpev bN gNN_'Y"vz0Rz"v"^(u zŹ^ N*N5uP[FUĄR"v
"^(u N*Nś^z{|UO"gś^"v/fNN_O`O"vćNxfr^ĄQ0bó` `O\Oz6qŃSsŁN"vnx
NĄ{t"v50060L"vćNxSbąN506Lnpf"v
ćNx ąQhTKNT `OćQVeg w we NvąN6q0_ą[f_nZi/fĄNHNa`0
\Ó~
sQN ASP.NETgę"vN`/f
HQ NO__ŃSNXT"vHes'Y'Y0WcؚąN0NO_"^(u zŹ^ŚT
|~"vS`'`'Y'Y0WśX:_ąN gYNO_"^(u zŹ^w"v_ą[fMęn0OY S_`O"v"^(u zŹ^ck(WŹL
e Yśg`O Y6RN*NDLLe NĄl g[ ŁŹ7h`O"v"^(u zŹ^1\SNs^Ńn0Wy i0ReHr,g N0>NŁŹ*N
OP[/f:NąNfSNwck0Wcؚ'`ż0S`'`0S(u'`0SibU\'`0bó` @b gŁŹNżRżś[E
N/f|~
10
E{|śQHrir 6R\OśQT _fYMQ9ć5uP[echDćeżwww.epubcn.com
-Ngę"vN`0d
dkKNY bNŹśX RąN'Yę"ve"vźRż0bwS g_Y"vN w@wASPN1.0 200
0R3.0b"v NNĘN)Y w0RASP.NETePO U ł[Nserverł[aŚbresponse ł[aŚNĘSvQ
N{| 11
E{|śQHrir 6R\OśQT _fYMQ9ć5uP[echDćeżwww.epubcn.com
zŹ^XTŻŚŚ
NbbNŚNŚ_ŃSNXTYUO_0W_YASP.NET"v zŹ^Ą0
`OŃSsASP.NET-NĄNHNNkASPf8T_N
gNN/fMęn ASP.NETMęnwćegfą[fTąVdk bó`ŚsQNŁŹ*NŚŚ"vNąpQą[0bN"v
nxŃSsASP.NET"vN*NOąp/fSN{US0WMęn01uNASP.NET"v"^(u zŹ^/f1uŃŹ"vćNx~b
@bN NŁlŚQDLLb\PbkgN gĄR0OY (WĘN)Y"vASPŻsX-N Yśg(W`O"vQŁz N gN*N^8^
ę"vFUN~NN*NźRżf R:_'Y"v~Nfbce `O\ N_ Nf\P WEB Łząp"v gĄR NżOO_
DLL N[06qTfbc~N ęe(W|~-NŁlŚQ ęe/TR`O"vWEBŁząp ŁŹ7hZP"vÓ~śg/f(WgN
k"veę `O"vŁząp\ Nżł[Y]\O06q NNtQKY"v/f(WASP.NET-N `O N(WZP Nb"vNUO
]\O `O(W_N N_QąŁ*N{k"vregsrv320`OęS\ŁŹ*Ne"vDLL>e0RN"vDLL|~"vvU_ N0
S_MRż"ve"vDLL"vBlN6q(W]\O e"vBl\OćŃSe"vDLL,ŁŹNROc~0R"vDLLŚ[b@b
g"vBle:Nbk0Łe e"vDLL1\OćNf"vDLL,ŁŹNR NO_ŃS\P:g ŁŹNRęSŚ(uXCOPY
"vMęnźRż ŁŹNRO_bN"v]\Of gHes f RŻm0
ŁŹ7hZP"v}YY/f N(ućQQąęT*NDLLsQ 6qTćQsQ핃[ęT*NDLL-N gBUG0/f&T gNy
ąe_SNO_S_MR"^(u"v@b g"vDLLŹ"vsQ Ź/f_{Ś\WEBŁząp\Pc0
ł[beg ŻOYu[MRb"vHr,g Tb"vHr,g/fNN_ą[f"vN`0ęS)R(u XCOPYęeMęnN
N1\SNąN ŁNDL,__Oęń]fbc0
}YąN d
ąNMRb@b"vMęn{US"vŁŹ*Nyr'`NY `ONŹ gŁNOąpłćN8T_!30 zŹ^XT_y
i0RASP.NETŻsX-N
ŁŹ*NŚŚ_}Y Yśgb/fN*NVB zŹ^XT S_bŹeQASP zŻsXe bOŃSs N/fYdkźq`
bPNaz;R(WŁę6R zŹ^0b N(ub_ŁN,g틊 N(ućQQąŁyN4Y0R>\ż/fż~'`"vYt!jW
bSN(WASP.NET-NO(ufe"v;ęŹsQ| O(ucO"vfYe gĄRhV~N cOkASP zŹ^fY"vźR
ż0
12
E{|śQHrir 6R\OśQT _fYMQ9ć5uP[echDćeżwww.epubcn.com
nxś[/fŁŹ7h"v ASP.NETwąNbN'Yę"v"v_ŃSe `OSN(W T7h"vŻsX N_ŃSO ASP+uŚ
bŚ(u"vDLL v^NSN[hQ"vO(u06q ł['YYpe"v_ŃSeg g'Y"v6eĘvegęNNcO"vcaching
źRż0
bNżtćcachingźRżł[NhĆQ"vwebuŚb"vę'` ó[7bz"vcachingSNO_uŚb__
ęs gĄRhVz"vcachingX[PąNNN]~ŃŹ"vćNx SNcż"vŚ^0
bN Nb>NN*Ncaching"vOP[ N*N(Wż~"vFU^ ŁŹ/fN*N.UCD"vQ NFU^ (WN"v;NuŚb
N `OR>NąNN|R"vFUT0ąVdk `OO(uąNpenc^X[PFUTOo`0N,gżpenc^e NSMQ0WO ge^Ź0FO/f S_`OO(ucachinge NNżŹ"vOo`\OYu(W
caching-N0S_Bl"vOo`(WcachingKNQĄh"}"veP caching-N"vuŚb\O:NźSuŚbŹśQ ąVdk
`O N_(Wżpenc^1\SN_penc ąV:NNN]~(Wcaching-NąN0.NETFhśgONvŃvĆcaching
-N"vuŚb YśgŁŹNuŚbłvsQ"vpenc^"vOo`ŃSuąNSS N1\OzsSfeŁŹNuŚb0ąVdk `O N_b_
_ N0Rge"vpencOo`0Źcaching"vnźRż`OŹSNncaching"veŚ^ ĉ[N(WY
eQ[gfecaching-N"vQą[ `O_NSN(Wcaching-NX[uŚb"vąpQpe0;`KN Źcaching
b/g `Oś[E
N:N`OŁząp"v(u7bcOąN__Oo`"vSż'`0(W,g(ć N Nś[E
NvĄcS"v/fub}Y
"vHTMLuŚb N MQąNN|R"vuŚbub"vŹ z0
caching\wck.^RQŁz"v_ŃSNXTŚteQŁz"v'`żNĘS_"vłv"^ó[7b"vBl0
/f"v0ś[E
N`OSN w0RŁŹ7h"v`b_---QŁz gĄRhVkyź"SNłv"^fY"vąpQpe ąV:N(u7b'YŁR
"vBlż="(Wcaching-N0
N_ŃSNXT"v҉Ś^eg w YśgNN(WQ,{N*NASP.NET zŹ^e NNOG0RęTN'Y"vV

bł[`"vŻa0RTĘ` NASP0RASP.NETv^Ąl g NS>ć"vś
ćx0NNęS/f(WNNĆ~ N g@b N
T0S_6q gY"v/f_wćŁla"v0OY bNŹS8^(uASPNVB SCRIPTQ zŹ^ S_bNó`Rś^
N*Nrecord setł[aŚ"veP bN N_ NSETN*NSęI{Nrecord set0(WASP.NET-NĄl gSET
ŁŹ*NSpe vĄc1\/fSęI{NADO records setł[aŚ0@bN (WASPNASP.NETKNN gNN\
"vl"v]_ ŁŹN\"vl]_9h,g NOq_T0RuŚb"v'`ż FO/fYśg`O\ASP zŹ^y i0RASP.NET
Ne `OŁlaŁŹN\"v]_0ś[E
N NASPŹy0RASP.NET"vćNxę/f_\"v N_Qą\te*N
zŹ^ćNxy i ŁŹ$Nś[E
N/fSNv^X["v0ąVdk`O N_:_6R\`O"vQŁz"v zŹ^zsSy i0RASP.NET N
`OSN(We"v]\O-Nnę(ue"vASP.NETb/g0
13
E{|śQHrir 6R\OśQT _fYMQ9ć5uP[echDćeżwww.epubcn.com
bó` `ON6qSNP`ONMRŁ7hXf`O@b g"vpenc{|W0`ON6qSNO(uServer.CreateObject,
`ON6qSNO(u DIM RS [INN*Nrecord setł[aŚ `ON6qSNO(uDIM RS AS NEW ADO
record setŁŹyąe_ ł[T
ŁŹęS/fbN"vNy b (WbNg\ę"vy iż~+Ręb `Oś[E
N N(uQą ASP N ASP.NET"v
:S+R0`ON6qSNO(u DIM RS "vąe_ v^N(uŁŹyąe_Rś^NpencĘSłvsQ"vł[aŚ0ŁŹ$NKN"v;N
:S+R/fN*N/f(uVB SCRIPTRś^"vł[aŚ ćSN*N/f(uVBRś^"vł[aŚ0
ŁŹHN `ONs(W/f]~9eS0RNyb g{|W"v_ŃS틊s^S NąN
`O"v_ł[ bN gpenc{|WąN0bNs(Wf%NżYż wb/fSę bNs(WSN\ N T"vNir wbstring0 integer0a data set ąVdkbNSN
f}Y0Wżc6RQX["vO(u0
Ąc Neg bN"^o:yNNćNx(uNćĘę Nb@b"vNNN0
}Y"v0bN"v,{N*NŚŚ/fy iŚŚ0ŁŹ/fN*NxQW"vASPćNx"vuŚb bN\Npenc^-NSśQpe
nc>e0Rh-N0bNeg wN NŁŹNćNx bN
HQ[INąNbN"vconnection ŚTbN"v record set b
NRś^ąNŁŹNł[aŚ bN(uSETsQ.W[nbN"vrecord set I{Nconnection"vgbL0Ąc Neg/f
N*NDO WHILE _Żs \penc^-N"vOo`>f:y(WuŚb N0
<%
Dim con, rs
Set con = Server.CreateObject("ADODB.Connection")
con.Open
"Provider=SQLOLEDB;server=(local);database=Northwind;UID=sa;PWD=;"
Set rs = con.Execute("SELECT ContactName, City FROM Customers")
%>




14
E{|śQHrir 6R\OśQT _fYMQ9ć5uP[echDćeżwww.epubcn.com



<%
Do While Not rs.EOF
%>




<%
rs.MoveNext
Loop
%>
ContactName City
<%=rs("ContactName")%> <%=rs("City")%>



YśglŹ0R.NETFhśg N N\ę"vy i]\O0bNSN węTNN]~9eSąN ęTN
N NżO(uąN0bN(WSet con = Server.CreateObject("ADODB.Connection")ŚTSet rs =
con.Execute("SELECT ContactName, City FROM Customers")-N@bO(u"vsetKN{|"vsQ.W[NS N YŹąN0
FO/f(WŁŹębcśQ"v/f (W Nb"vćNx-N bN(Wrs("ContactName")ŚTrs("City")"vóSąŹm RąNN*N
^\'`Value0N"vśW,g+TIN/f bNSN_c[Lbc[R"vś[E
N g_\"vSS `OSN w0RASPNASP.NETćNxKNąQNNN7h Ąl gĄNHNyr+R'Y"vSS0
<%
Dim con, rs
con = Server.CreateObject("ADODB.Connection")
con.Open("Provider=SQLOLEDB;server=(local);database=Northwind;UID=sa;PWD=;")
rs = con.Execute("SELECT ContactName, City FROM Customers")
%>
15
E{|śQHrir 6R\OśQT _fYMQ9ć5uP[echDćeżwww.epubcn.com







<%
Do While Not rs.EOF
%>




<%
rs.MoveNext
Loop
%>
ContactName City
<%=rs("ContactName").Value%> <%=rs("City").Value%>



ŁŹ/f_8T_N"v ŁNSETsQ.W[ScąN VALUEsQ.W[_eQ ćNx,gś[E
NĄl gĄNHNS
S ąVdkęS`O w wŹśQÓ~śg `O1\OŃSsNNśW,g N/fN"v0FO/f ASP.NET/fŹL(W.NETFhśg
N N"vuŚbibU\ T/f.ASPX S_6qbN(WuŚb_NSNś[sCACHE"vźRż ęS NŹ(WŁŹ*N zŹ^-NĄl
g(u0RbąN0YśgbN\ Nb"vś[OŹNekńmeQ NSv^NQą"^(u.NETFhśgŚTASP.NETFhśg@bcO"v
NNf:NżO)R"vKbk0OY (umanaged providersegSpenc ŁHNbN\NeQ NbŁŹ*NNO0b
NO6q]\O(WSQL 7.0 N"vNorthWindpenc^-N0
..%4cOąNN*NęKbk/fSQL managed provide [SNvĄcŹĄc0RSQL N_penc
16
E{|śQHrir 6R\OśQT _fYMQ9ć5uP[echDćeżwww.epubcn.com
N_ŹOLEDBŁŹ7h"vN ŁŹyąe_~Źś[ćń[/f'Y'YcؚąNżŚ^0bNSN wN N Nb"v
ćNx,NNO(uŻ~ą|"vVB N/fVBsQ"v0FO/fŹśQ"vÓ~śgąQNNN7h0bNZP"vN`/fimport N
N namespaces , System.Data ŁŹ7hbN1\O ggśW,g"vpencYtżRNĘS_ł[ SQL
managed providerżżR"v SQL namespace0ŁŹNćNx"vŚ_N7h ŁebNO(uC#egYtśWN..%4śg"g"vTy{|^ s(WbN@b0R"v(WVB-N"v.NET{|^
NC#-N"v{|^wQ głv T"vŚŁŹ$NKN"vnx/f TNyŚ/fN"v0ł[NQASP.NET"v zŹ^ ŁŹ$Nyąelż/f_}Y"v0=\Ą{gN{|SżO gNN N T FO/fb
NSNNNO9eąQ*N"v0Wąe 1\SN\VBćNx_y ibC#ćNx0
ś[E
N YćNx\ NO9eSNvŻOYu Neg 0OY SQL connection W[&{2NęS9eSNąpąp
SQL select statement W[&{2N NO gĄNHN9eS0(WŁŹę bN:_ŚN N ł[Nconnection W[&{2N
bN NćQO(u ADO provider NćQO(uSQL OLEDB\O:NADO provider,ąV:NbNO(uąNSQL
managed provider ąVdkbNc!PO(uSQL7.0N N"vHr,g NżŁ~bNf}Y"v'`ż0bNRś^N
*Ndata set(uNŻOX[bN"vpencNĘSTegż"vÓ~śg0bN(uSQLDataSetCommandĄh"}SELECT
"vÓ~śg v^ŹVuŚb \NNceQ0Rdata set-N bN}T TŁŹ*Nh:NCustomers0ąVdk bNs(W g
N*Ndata setł[aŚ NS+TąNN*NCustomersh0Yśg"vŻ bNSN ReQfY"vhŚTfY"v
sQ|0NADO records set N T"v/f bNs(WSNYtf'Y"vN` bNSN\te _'YhRbr^
*N\h NNKN"vsQ|SŻOc NS ŁŹyąe_ g)RNf'Y"v zŹ^"^(u_ŃS0.



.
Ąc Neg bNó揹QLćNx vĄc>f:yNASP data grid serverżcNłvsQ"vćNx0ASP data grid
server"v\O(u/fcON*NgśW,g"vh0bNZP"v/UN"vNNN`/fJTɋNbN(W gĄRhVzŹLN
N/f gĄRhVz"vżcN0Ąc NegbNnthe border[Ś^:N
ąV:N Nb"vOP[-Nborder="0"0dkY
bNe RąNN*N^\'` N(ueg9eSitems"v̀ofr0N(ueghĆ(WASPh-N N ThN:SR0S_6q `OQ_Y"vćNx (u_Żs"vąe_9eSkN*NyŚv"v̀ofr (WŁŹębN{SN N]\O
ęS/fh_ŁŹ*N^\'`0Nhs"vri_/fEmppr0

AlternatingItemStyle-BackColor="#CCCCCC"
BorderWidth="0"
/>


bŁla0RŁŹę gN*NASP"vtag,N"v\O(u/fh:yN*NżcNT
/f"v N"vMR ASP"vMR0hfŁŹ/fN*N ASP"vżcN Tb"vŁRh:yŁŹ/fN*N gĄRhVz"v
żcN /f(W.NETFhśg N[IN"v0bHN_NSNb_bbNęń]"vżcNv^NŁ~NNN*Nrz"vMR ś[E
Nb
N]~:NbN"vŁząp[INąNNNbNQŁO(u"vżcN0}Y s(W bN wN NŁŹ*N zŹ^"vŹLÓ~śg ŁŹ*N
ŹLÓ~śgN Nb"vÓ~śgłv"v[IǸofr"v^\'`0bNŁŹ*N zŹ^N Nb"v zŹ^"vĄśW,głv T FO/ftS_ą[fm RŁŹ7h"v^\'` bN
k)Yż(uŁŹ7h"vąe_Ytb(T"vh N ŁŹ_N/fO(u gĄRhVzżcN"v}YY
NżObNfą[f(WHTML-NhsąelŚT^\'` NO_ z]\Ofą[f f_wc0
18
E{|śQHrir 6R\OśQT _fYMQ9ć5uP[echDćeżwww.epubcn.com
ąVdk bN wŁŹkćNxNMRNkćNx"v;N:S+R/fN N zŹ^XTQMąSte*Nrecords set
"vWHILE_Żs0_N N(WHTML-N"vg*NT"vMOn>f:yÓ~śg0`OSN_{US"vubN*Nh 6qT
JTɋN`O"vł["v /fŁŹ7h"v0RMb gNNN`bóćŹSąN 1\/f`O"vŁNN`0bNVŹ4Yeg(W wN NŁkćN
x0bN(u TW[Ś(uŁŹNdata gridv^N\NNFcŃ~0RegnNdata set"vÓ~śgNĘS data set.-N"vN
*Nyr["vhdgCustomers.DataBind()
Nb"vOP[/fN*N\N*N_{US"vhf:y(WO\U^ N"v zŹ^ ŁŹyhsąe_ wwćeg/f{US gHe"v FO
/f ł[NN*NkŹ YBg"vhf:yf:NąŁT"vW[&{2NI{Bl"v zŹ^N6q
SN(u T7h"vąe_MąSte*Nrecords setT
S_6qSN ŁŹś[E
N/f.NET gĄRhVzżcN"vN'Yyrąp0bN_ą[fł[datagridZPNNó[7bS"v[
6R]\O ąV:N N/fN*N_śW,g"vźSYhkN*NUSCQł["^NagU_0bNSNŹ_Żs"vąe_(u!jHr[6RN"vkN*Nę Y"v0Wąe gNy
repeaterpencżcN AQŚ[hQ(u!jHr[6RN"vkNek ąVdk bN gN*N4Y!jHrŚTN*NN*N>\!jHrR+R
[INąN!jHr"vwćYŚT!jHr"v~bk0bNŹ gNNitem !jHrŚTNN alternating item !jHr NNSN
:NbNcOfY*N'`S"vĄ0bNŹ g_Y"v}YN>e0RąNQŁzASPNextGen.com Nb (WŁęb
N(udata repeater\OąNY"v]\O Te_NcOąNfY"vó[7bS"vŹśQ0
*Y}YąN *Y}YąN bSNPsśQŁNĄoRN_"vźRż RMb`Oc0RąN`OSN_ŃS`Oęń]"vżcN>e0RuŚ
b NS Yśgs(W"vtable gridżcN NżYnłć`O"vBl `OSNQNNęń]"vćNxv^\9e Ź"vżcN
"^(u0RNUO`Oó`(u0R"v0Wąe0
/f"v NŹg ga`"v/f `O NNNSN[6R`Oęń]Q"vżcN NŹSNibU\ gĄRhVz~N"vźR
żOYbSNibU\ data gridźRż Nnłćbęń]"vyrk"vBl0ZPŁŹNN` bNSNO(ubNŚ[hQ
Ń"v gĄRhVzżcN _NSNO(uNyćSYNyżcN---(u7bżcNuser control 0(u7bżcN/fNy-N
N NNNuŚbżcNŚT gĄRhVżcNKN `OSNŹ(u7bżcN>f:yąelŚT^\'` _NSNhsfY"vźRż0
19
E{|śQHrir 6R\OśQT _fYMQ9ć5uP[echDćeżwww.epubcn.com
_ŃSŁŹNŚY"v(u7bżcNkUSŻ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(uNN NNż/fbN>e0RQŁz N"vNNYe z zŹ^ NNSNŁ~`OłćY"v`O
ó`"vOo`0sQNASP.NETŚTWEB SERVICE bń:NO gN*NŁ]'Y"v^:WŚTNNłv4O L0`O"^
wSN*NS Amazon.com"vlQłS NNZPąNY\ gĄRŹĄcwćeg"v]\O0NNSN(WNNęń]"vQ
Łz N.UfN FO/ffN"vOo`tSŹ Amazon.comhsśQeg ŁN.UfN"vN_0RąNO0ŁŹSN wb
/fWEB SERVICE"vN*NxQW"vOP[0ŁŹ*NOP[_}Y"vhsąNS_`OOmȉN*NfN"vRheP YUOŁŹ
NfN>f:yśQegąe/f^yy\Ź/fStephenKing"v\ żSNŹWEB SERVICEŹVÓ~śg0
Amazon.comś[E
Nv^ N/f`Oż"vŁząp FO/f`OtSSNNęTę_0RVP0_0RhŚŚ0_0RfN
"vRhOo`0`OSN(u`OśU"k"vąe_>f:yNN0
/f"v WEB SERVICE"vOąp/fN/fśWNxml"v ąVdk`OSN(uŁŹyąe__0ROo` v^N(u`O
śU"k"vąe_YtOo`0ęSżYRgv^YtxmlOo` `O1\SNO(uweb SERVICE ąVdk`OĄl g_
N[Ńć0RN*N.net"vwebŁząp NSO(uweb SERVICE0
-------------
=---=================================================
ĄNHN/fZP..%4 zŹ^gę"vN`Yśg`OŁ~bN‰ONNcąp NN\Of_0WĄcSASP.NET0
}Y"v0SlŁŹ7h"vN `O]~(uąN_Y!kąN0`OęSf[`N[NKN"v N T1\SNąN0Yśg`OG0R
Ś[hQ N T"vYtąe_ `O1\ N_ cgqŹS"vąe_SZPąN ąV:N`OZP,g]\O]~_eąN @bNO g_
Y N T"vNf[`N0vQ!k sQNassembly namespaceŁŹNi_ż_nZi0Ąc Neg /f틊"vŚŚ0
bf~/fN*NVB zŹ^XT s(Wb/fN*NC# zŹ^XT bśU"kC# [/fNy_ }Y"v틊0Yśg g20L"v
21
E{|śQHrir 6R\OśQT _fYMQ9ć5uP[echDćeżwww.epubcn.com
VB zŹ^C#5L1\SNćłQŚŚ0FO/fł[NC/- ..%4Fhśg"v]~:N`OYtąNŁN8^"v]\O @bN
`OęSQNNNĄR;ęŹ"vćNx1\SNąN0
`O"v/ftć ĄNHN/fAssembly?
/f"v Assembly namespaces0łvsQ̀of0te*N.NETśg"g żtć0
tćnamespacesŚTAssembly"vsQ./ftćNN"vi_0`Otć[NćY `Oł[śg"g"vtć1\ćńm
eQ0;Ntć[N/fĄNHNŚT`O:NĄNHN[N0bń:NNNASP_ŃS b/fvQNNNĄl gNUO_ŃS̀of
"vNŹeQASPąŚW"vźSąV/fąV:NASP^8^}Ytć [_ą[fĄcSv^N`OS cgqęń]"vąelSZP0Yśg
Sbc0R.NET FhśgŹ/fNNRR0Yśg`O g_ŃS̀of1\kŹą[ftć ąV:N`Oźq`łvsQi_ źq`pe
nc"v]\ONXTZPfY"vRR0
ASP z!jW(Wte*N7%"uŚb NO(u"vż/f,g틊 ąe/fó[7bz,gŹ/f gĄRhVz,gżO_
zŹ^>f_^8^QqN0`O~8^f9e"vNNćNxb N_ NVYO9eNju0s(W !SP.NET }YP]~:N`O
cOąNf Rĉ"v_ŃSąe_0
`Os(WżŚ[hQRyśQ`O"vćNx0`OSN gHTMLćNxŚT zŹ^ćNx żYtpencŚT_0RRNHeśg0
`Oc0R`O/f*NC# zŹ^XT ASP.NET(WuŚb N/ecC#0bN w0RSQL Server"vŁ*NOP[ `OO(u"v
/fVB N/fVB script `O/f N/f(WuŚb N_Nż(uc#_ŃS0
cknx0b/fEIFFEL0Vł0COBOLvQNNUONy.NET/ec"v틊0`OSN)R(uŁŹN틊ZP`Oó`
ZP"vNUON` FO/fggę"v `O NćQĄNHNagFhP
6R0kYZPASP zŹ^ `OęSż bVB scriptb
javaScript ŁŹNN0s(WR N TąN `Oźq`ĄNHN틊`OfśU"k(uĄNHN틊_ŃS`O1\SNO(uĄNHN
_ŃS.net"v zŹ^0Yśg`OśU"kCOBOL `OOaɉ0R(W.NETFhśg NZP zŹ^fzŚKb0f ga`0bó`ŁŹy
ieł[_YO(uvQN틊"vNż_/TąNąeżOKNŁ0bf~ŚT_YC++yŚv_ŃS]\OŹ b Nó`NNP`
`ASP FO/fNNnxś[ NśU"kO(uVBScriptŁŹNN s(W}YąN NN N_ćQ:Ndkćp|` NNSNO(u
NNgśU"k"v틊_ŃS0
/f"v0(WbNsS\Ó~_gbN"vŚŻe `OŹ gĄNHNŻł[bN"v,TOTżł[NNńmeQf[`Nv^O(u
22
E{|śQHrir 6R\OśQT _fYMQ9ć5uP[echDćeżwww.epubcn.com
ASP.NET gNĘvY0
p1r[ f[`N[ =\`O(u[ bó`ŁŹ/fsQ.ŚŚ0ASP.NET nxś[/fO'Y"v]wQ0[OQŁz"v_ŃS
f:Ną[f0v^Nbó` ckY Nbc0R"v [S_f ga` fzŚ)R0fą[f0@bNbó` Yśg`OSb{f[
`NASP.Net s(W1\_Y `OO|[v^Na0REQn_PN0
23


Wyszukiwarka


Podobne podstrony:
BizAgi Studio Cz 5 Stworzeni aplikacji zewn trznej w ASP NET
asp net introduction
ASP NET Module 5 Using Trace in Microsoft ASP NET Pages
Podstawy ASP NET 2 0 – tworzenie stron WWW oraz aplikacji Web
ASP NET Introduction to Microsoft ASP NET
ASP NET
Asp net mvc caban

więcej podobnych podstron