Các mẹo trong lập trình
Export và Import ra tập tin text từ Access (VB) !"#$%&'()*'+$%%,-./$0/12/3415%66%736$16389:;<=36>39?@<8ABC6=3DE=36F>FGF>3?9<C=6H6>6I6=6J1K61JJ1HL6J1=3HD=3HJ1>F>3;66J1?M1EJ1?;J1?>6=36EJ1!?=3ENH$DO?1?M1P=QRHN>1(666S1>F>3P?EK61PCJ9?M1<N:K61EHPK610CL69K61(C><T=3H0=1M1PM600=1M1PM10=1P0=1KPKE>;6UVWX@>F>3>0J1YPK9Z<0J1GPK9Z<0J1[PK9Z<=0J1YPK9\\<0J1GPK9\\<0J1[PK9\\<=X@0KLI?P$KI@=T?P??N>?>6=36PKQR=3603!?=3PJ9?>6=36<X@!?=3]^> _?>6=36=X@C?>6=36?6L61?IPI9=3H<D?((=3HJ6`H0=C?T=3H0=1M1PH9=1M6<0=1M1PH9=1M1<0=1PH9=1<0=1KPH9=1K<=TD?((=3HH0A6$M3I66H0K6EHPM6K6?=3EI6=6QA;63=6CQa=0J6((=6=ENX16>3$6ABDEX16F>3?FGF>9<C=6H6>6I6=6J1K61JJ1HL6J1?M1EJ1?;J1X16L6EJ1@M1EJ1L6OD66J6J1=1M1EJ1=1M1EJ1=1EJ1=1KEJ1J1E@M1PKQR=3603J1P(?P??C@M1?6X?IXb?(X16L6?M1PKQRHEK61PCJ9?M1<EHPK610CL69K61(CJ<J6`=C?9?<IXb?(X16L6L6OD66PL6OD66cY=1M1P>19A9X16L6(Y(XE9Y(X16L6(J1(Y<BY<<=1M1P>19A9X16L6(d(Ye<< =1P>19A9X16L6(Yf([e<<=1KP>19A9X16L6(\Z<<H0MOH9=1M6<P=1M1H9=1M1<P=1M1H9=1<P=1H9=1K<P=1KH0`I66K6?H0K6EHPM6K610K6EK61PM6=3EI6=6QA;63=6CQa=0J6((=6=EKỹ thuật Subclass Listbox trong Visualbasic ;$#g27!h6:;0;i76%j,-!!6:;T6O/%15kj4@61$66S:;%7662#$+5l%m(!6.$g(16%%,-V$n/%!0_h%73op /%,4!2%#%,-@61$660;kp/%$3oNN$NN,4!2%#%(2i7iU9,q$g666o<0E15!h$(r.15st9$,Q6'i!/ju%#$V6Sj<i7u%#$jS+#16j6%5!/vj 91%<(p&:;+6O(1610>i%n%7o%,-$V%nw!/*6$ni0:1Y2ow!/V126S:;!,&%1%i@61Y/,x9V126<%7qj$'i0EAT6OQK2y%mq!hk1lY6z14$1Y16$66z96z{16{6<0;mx%|i?61Y$A6Y66z0;1lA6Y$6(%66$6QDK6HTIFTMJDLCKP9B\<D6T6OD6I6DJ?6ET6OI6INN[GNNNNET6OI6NN9F;:OI6(F;:X3I6(F;:OMOI6I6<I6}m151DXST6O6~%"5SY"966B8mx26,66w15O6O<(6,x-S2%"1TD691T611O6O•%73o/%6j9%nT6O<%#<0 OB1ji!76•%73%+Y"9@61<Y669i76i,'j3•%3%+VSY3$<0X3B1jwi!76•%73%+NN.%"NN61ET6OI6i9i71!'665AEJM<(6,x-S2X3i+HTIFTMJDLCK9$2.3o1TD61<0OMOI6B1i!76•%7r%+rSS1412.3o01TD614'i1jj1jS1TD6+#0;w'2o''/%1!/3o61TD61p%+3o0;#6$%61|$6A6YQD$J?6KT6OD6INN[GNNNNKT6OD6NN9F;:D$T?I6(F;:OI6(F;:AI6(F;:OD1I6(F;:D1I6<I6D?6MOT6OD69F;:TI6(F;:AI6(F;:OD1I6(F;:D1I6<I6J0DNNaNNa39A<(OD1(D1MOT6OD6PKT6OD696T6OD6(T(A(OD1(D1<=?6KT6OD6•%7€1TD61p%+3o(1MOT6OD61#61TD601MOT6OD6!/1V$68$"J31/%%,-%#6"9"+<01MOT6OD6%i€1TD61p%+%73o/%Y,x9#6T6OD6•%7,%+r1TD61p%+<0>1j1j61MOT6OD6QTBS"g/%•AB/%%,-•$G1jv9OD1$D1<1/S/%(5$6/%%,-0;mxi76z%,-(,,i3''("9@61<S,+0A5. 3y!/V1$626%78,&$w,6z,4!0}7q"9@61<S(6$6@61$6(%66$6QD$E?61FI69<NEO6O6T6OD6PET6OI69A0T(HTIFTMJDLCK(C@MOT6OD6<=ED$E?61F`69KX<N`96O6O6<ET6OI6A0T(HTIFTMJDLCK(6T6OD6 =E;mx6!(@61S%|+‚;6z$31%n3'ƒK"JSg /$n/%1j%|6@61S(75(%"!,4@61000131091C@•%7V%+rSY1<06O6!616I63Q;,4YQ_~6YI;63$YX166$6?61Y0;,4GQ>1Yj191<$6I639A6I;6366<0;,4[Q>1Y$6X1Y9g•1!66I;63<0;,4\QAlA6Y$%66$6QD;H;I6DJ?6KD;INN[GNN9F;:;1I6<I6DJ?6JCzINN[GNN9F;:CzI6<I6D$J?6E;!A6INN[GNN9F;:I6(F;:;!A6I6<I6D$K6TAFK>IKCICLIXE>;C„PaY[\K1•6$$gn6I;63(i731165AEJM0;,4…Q>%666?61FI6$?61F`62|k%6614,QD$E?61FI69<X1Y0:P?;H;PKD;9X1Y0D0<NEO6O6T6OD6PET6OI69A0T(HTIFTMJDLCK(C@MOT6OD6<=ED$E?61F`69KX<N`96O6O6<ET6OI6A0T(HTIFTMJDLCK(6T6OD6JCz;H;=E;,4†Q:#1MOT6OD66A6Y%71$121j96$<0D?6MOT6OD69F;:TI6(F ;:AI6(F;:OD1I6(F;:D1I6<I6J0DNNaNNa39A<(OD1(D1X@APTAFK>IKCICLIXE>;C„;H;]^e>NA!O6E;!A6OD1(YN6O666366(0@61360KT6OD66T6OD6(O(A(OD1(D1NL6616@@6MOT6OD6P;H;=MOT6OD6PKT6OD696T6OD6(T(A(OD1(D1<=X@=?6;,4dQ‡‚;,6z$310;mxI;63S%|i!6'!/ƒ>61%,-,$ƒKi$%71.,o,Q}nYQK2p/%TAFK>IKCICLIXE>;C„%73o0>/%%,-6O6O9"1ˆ("V6&I;63<SI;63,4!j$g630I2OD11+JK9$63<•%7$g63(D11+S63.$g0:15%n$/•*€+'$nS1T6OD62(+g%,-j•%7$gn663(6%i6MOT6OD626MOT6OD6NNrNN%#S;H;9MOT6OD6P;H;<$,4%i2%|6;H;kQ;H;PKD;9X1Y0D0<0:V'/$!$u%,-3o,xk2€1QKT6OD60}nGQK2''ijk(6?61F`6QJCz;H;0M#2!/1$gu%#,-116!B1'1j(m6j0;r16$Y63(i7!h%71€6611j(r%&'%"(1j6•-,QTBS".(3o61MOT6OD66•-$4866(8/%0Chạy tập tin MPEG trong VB6 K2g3mq15K%7%n!7%+6AD=H0;i76$&'$5SAD=HkK0D$J?61H=6EINNO110NNNN1H=6ENN9;:O=6I6(;:;@@E(;:II6<I6D$J?6HE6DM1INN![GNNNNHE6DM1NN9;:‰I6DE(;:‰E6DE(;:;@@I6<I6D$J?61EEINNO110NNNN1EENN9;:K611E(;:LEE(;:LII6(;:OK!I6<I6 K61F@F?M1PNNNNJ11F?M1ENAX@6P`K66(`K66(BY(=DD6H=9<;66=P`K660==D6DD6I=9;:MOF=;66<`K660=9<PMOF=D6KNN=NN=D6NA1X@6PY[(e(e(DD6H?M19<E?M1P1F?M1=D6DD6I?M19;:MOF?M1E<1F?M1PMOF?M1D6KNN?M1NN=D6N_l%55S%j,-D$E`K66FXD69<1F?M1P1F@F?M1=EN}€5%|, D$E`K66FLD69D6;D6;<`K660=PD6;0LD69NN=NN(><1F?M1PD6;0LD69NN?M1NN(1F@F?M1<=ED$E`K66F>19<11E6=ED$E`K66FTD69D6;D6;<KD6;0TD69NN=NN(`K660=(><KD6;0TD69NN?M1NN(1F?M1(1F@F?M1<=ED?6XD9<;66EEŠ[e1EENNAD=HD16NN((I9<(eXDP9A‹9(Y(d<PNNNN<=?6D?611D9<J11>6J6EŠG……J1OLI6J1EŠYGfJ11EŠG……J1E6I6 J1E6D?EX@J9?M1<PNNNN>11CPNN=6O@NN=3?6=X@E6PHE6DM19?M1(1(G……<E6D?PI@‹91(E6<6FTPT1>6J6PNN6NNaE6D?aNNAD=H:6AD=HDDNNa`K660TaNNEYed[d\YfG\NNOLP1EE91>6J6(ea(ea(ea<X@OL]^e>N61H=6EOL((YGf11CPA;63($K=3?6=X@11DPNNENN1EENNAD=HDNN(e(e(e=?6D?611D9<1EENNAD=HDNN(e(e(e=?6D?611E69<E1EENN6AD=HDNN(e(e(e1EENN6AD=HDNN(e(e(e=?6D?6D66XE9<EEŠ[e1EENNAD=HD1@6116NN(e(e(e1EENNAD=HD66NN((I9<(eD66XEPL69A‹9(Y(I9<<{Yeee<=?6D?6D669<EEŠ[e1EENNAD=HD1@6116NN(e(e(e1EENNAD=HD66NN((I9<(ePL69A‹9(Y(I9<<{Yeee<X@]†e>D66PNNeQNNa?619(NNeeNN<X@^…Z>1PX9{†e<PB91Š†e<D66P?6191(NNeeNN<aNNQNNa?619(NNeeNN<=X@=?6D?6IXE9<EEŠ[e1EENNAD=HD1@6116NN(e(e(e 1EENNAD=HDNN((I9<(eIXEPL69:9A‹9(Y(I9<<<{Yeee<NL69KX9A‹9(Y(I9<<<{Yeee<=?6D?6I9<EEŠ[e1EENNAD=HD1@6116NN(e(e(e1EENNAD=HDNN((I9<(ePL69:9A‹9(Y(I9<<<{Yeee<NL69KX9A‹9(Y(I9<<<{Yeee<X@]†e>IPNNeQNNa?619(NNeeNN<X@^…Z>1PX9{†e<PB91Š†e<IP?6191(NNeeNN<aNNQNNa?619(NNeeNN<=X@=?6D?669<@1K60E6O$A6(A=?6D?6E!>69E6<1EENNAD=HD1@6116NN(e(e(eX@XDP>>1EENNAD=HD@61NNaE6(e(e(eX@XDP?>1EENN!AD=HD6NNaE6(e(e(e=?6Truyền giá trị qua trang khác với phương thức Server.Tranfer (ASP.NET) ED0M=>$666V %7!71+,x•$6!6!•150M,1#6%76!ƒ0:i15(TD6OY03$4G36366(GL*?:6660;1j7 15G(TD6OG03(r!363%|%,-+TD6OY03Q]6^]@61PNN$NN^]6PNNeNN^]6^]^]^]QIPNNIYNNPNN$NN^?M1Q]{QI^]{^]^]Q>3;63PNN3?M1NNPNN$NN^]{Q>3;63^]QL*?:6PNN@$?M1NNPNN$NN=6APNN?1*0NNK66>6:PNN3?M1NN^]{QL*?:6^]{^ ]{^]^]^]QIPNNIGNNPNN$NN^IM1Q]{QI^]{^]^]Q>3;63PNN3IM1NNPNN$NN^]{Q>3;63^]QL*?:6PNN@$IM1NNPNN$NN=6APNNI1*0NNK66>6:PNN3IM1NN^]{QL*?:6^]{^]{^]^]^]{^]^]Q;6PNN1D6NN6!PNN1D6FK!NNPNN$NN>3PNNE1NN^]{Q;6^]{^]{^]{6^]{^]{@61^]{6^TD6OY03g7%#TD6OG03#+%,-$6G363Q$61D6FK!9Cz(=$<Œ@9D0X:<ŒL60L9NNTD6OG03NN<•••:V%nv6g!/n+!TD6OG0K2E$0>@$61D6FK!9Cz(=$<Œ@9D0X:<ŒE$0>@9NNTD6OG03NN<•••>6ED0M=>(E$>@1p%+g!/n@61(*668156!0Ap•$i7%+1jGS,&>@>%7+i7%,-n15140$61D6FK!9Cz(=$<Œ@9D0X:<ŒE$0>@9NNTD6OG03NN(<• [...]... e) Œ EPKE9K660H(K660‡6O([(NN:NN(Ye((<• EK66E9>3;63Y(<• PKE9K660L(K660;!(G(NN:NN(YG((<• EK66E9EE;(<• PKE9K660;(K660‡6O(G(NN:NN(YG((<• EK66E9I;63Y(<• • Truy cập các giá trị của Server từ trong Web Service A56mt,xp6O6NNI1#6/V%,-%+rXD S6O615O$ƒNN0Km'xV%&'0E4K636 E10T0E$0;i77%,-1/*$S2/0 K2g31$!%&' Y0... 'Enter' >,l,-i15ED0M=>$41520M,x%$615%6 3$V=0?61g1$!#*'%,-'$n0Mi!(2%|%,- @0 I16ƒ}&'115v$6q!DI6(€,& L? D0L?9NNFF=:=M>>LH=>NN(NN2SNN< Các bí mật sau các User Control K`K66,x1'6,x,$/™!0Mi!/*!i( $V 6O4$#!1/1$S0 K321ƒM#%|8ED,4%m(1566,15 @0 ;i7i1513$46%ˆ1y(1s!%#.!S0 ;!/1j1s%n'#!#1(61,1566$' $6V&%mV.#0 1.... $XE• XEPNN@03ƒETPNN• XEcP0O• XEcPNNaEPNN• XEcP0• 6PXE• 19<• • • ]{^ ]{6^ ]{1^ default.aspx ]1^ ]^ ]PNNKbNNPNN$NN^ $6DFI696z(=$< Œ OPK630K0L*0‘E–NNETNN—• PK630K0L*0‘E–NNENN—• E6–NNONN—PO• E6–NNNN—P• IY0>3PNNTPNNcOcNNPNNc• • ]{^ ]{^ ]6^ ]@61PNN$NNXJPNN?61YNN^ ]Q>TPNNYee“NNLPNN$NNXJPNN>YNN^ ]Q>L6O^ ]Q>K6‰6PNNKNN^ ]QIXJPNNIYNNLPNN$NN^]{QI^ ]{Q>K^ ]{Q>L6O^ ]{Q>^ ]{@61^ ]{6^ ]{1^ ;mxi7i+$,$66$+lV%m6O 6 Áp các kiểu cho các ASP.NET Web Control Kin!%7!76T660A56,x •V0;i7SST6615q %5$0M=>?1O6!iV4%7q$0 The... 1p%+9”Ež6p:;E< {@=36Q!73V @Q3V.1|1|6 6@Q!%|1|6 E%m\6i7%,-1|6lE=6 ASP0 HTML0 Plain text Scriptlet0 : 01601 Một số mẹo vặt của ASP.NET /12g17!hQ7+56'6T=; 9JTTA<(6152J@(W`K660 Hiển thị các Web Warning Message: }m,4%&'%7615'6k”$(r.1515v$ %plVmED0M=> 1.... tin @1PL*0E$:–''PATH_TRANSLATED''—• // Tạo FileInfo object mới cho tập tin này 6z?XPOE10XC0?X@69@1<• // Các trường thơng tin cần thiết @10>3P6z?X0?M1• 10>3P6z?X0M1• ‰0>3P6z?X0I0>6E9<• 0>3P6z?X0K6>10>6E9<• 0>3P6z?X0I>10>6E9<• 16@0>3P6z?X0IT>10>6E9<• 60>3P6z?X0J6M1• 360>3P6z?X0=36• • • ]{^ ]>AI^ ]=J^ ]{^ ]{=J^ ];CJ‡^ ]@61P''server''^ ]^?X@616]{^ ]P''articlelist''^ ]^ ]P''header''^?M1]{^ ]^ ]QIP''fullname''P''server''{^ ]{^ ]{^ ]^ ]P''header''^M1]{^ ]^ ... ;:AI6(F ;:OD1I6(F ;:D1I6<I6 J0DNNaNNa39A<(OD1(D1 X@APTAFK>IKCICLIXE>;C„;H;]^e> NA!O6 E;!A6OD1(Y N6O666366(0@61360 KT6OD66T6OD6(O(A(OD1(D1 NL6616@@6 MOT6OD6P;H; = MOT6OD6PKT6OD696T6OD6(T(A(OD1(D1< =X@ =?6 ;,4dQ‡‚;,6z$310 ;mxI;63S%|i!6'!/ƒ>61%,-,$ƒKi$ %71.,o,Q }nYQK2p/%TAFK>IKCICLIXE>;C„%73o0>/%%,- 6O6O9"1ˆ("V6&I;63<SI;63,4! j$g630I2OD11+JK9$63<•%7$g63( D11+S63.$g0:15%n$/•*€+'$n S1T6OD62(+g%,-j•%7$gn663(6%i 6MOT6OD626MOT6OD6NNrNN%#S;H; 9MOT6OD6P;H;<$,4%i2%|6;H;kQ;H;P KD;9X1Y0D0<0:V'/$!$u%,-3o ,xk2€1QKT6OD60 }nGQK2''ijk(6?61F`6Q JCz;H;0M#2!/1$gu%#,-116!B 1'1j(m6j0 ;r16$Y63(i7!h%7 1€6611j(r%&'%"(1j6•-,QTB S".(3o61MOT6OD66•-$4866(8 /%0 Chạy tập tin MPEG trong VB6 K2g3mq15K%7%n!7%+6AD=H0;i76 $&'$5SAD=HkK0 D$J?61H=6EINNO110NNNN1H=6ENN9;: O=6I6(;:;@@E(;:II6<I6 D$J?6HE6DM1INN![GNNNNHE6DM1NN9;: ‰I6DE(;:‰E6DE(;:;@@I6<I6 D$J?61EEINNO110NNNN1EENN9;: K611E(;:LEE(;:LII6(;: OK!I6<I6 ... 1<‹NN 61PNND$10NN JPNNJ1NN{^ ]Q;6PNNEANN3PNNEA‚NNCK!PNNEAFCK!NNPNN$NN{^ ]{@61^ ]{6^ ]{1^ Lấy kích thước màn hình của client trong ASP.NET ;1j3%+!,41S%7Oq%56V0K v6g2V%55$6S$l$nE$ K2/G start.aspx ]1^ ]666PNN6T>6>E$9<NN^ ]@61PNN66NN16PNN6NN6PNN@03NN^ ]{@61^ ]PNNz$NN^ @66T>6>E$9< O9610=1;X9N66N<< Œ ... J6 HKM1T(E$(G…e X@IK9I@‹9E$(†<<PNN6NN>=3J6 TPHT6O9T(HTFTMJM=„>< I66 N˜6 ET6OD6T(e(e(e(e(e(ETDFXJ=TXMJCT =E D$E?61F`69KX< N6 ET6OD6T(e(e(e(e(e(ETDFECTTXMJCT =E Giới hạn của biến trong VB.NET >6:;0†i7!6+!7,D(D$(?($96<J10 6:;0M=>(i15!6i+66!96!B$6<0Ki™# !615#615m6!9,?6M3(T(EK(X@ >000<(#r%,-761$S6!%i0 ;gV$%mg6"!+ D$EJ6E619< J1;66P> X@> Dim . 'Enter'>,l,-i15ED0M=>$41520M,x%$615%63$V=0?61g1$!#*'%,-'$n0Mi!(2%|%,-@0I16ƒ}&'115v$6q!DI6(€,&L?D0L?9NNFF=:=M>>LH=>NN(NN2SNN< ;Các bí mật sau các User Control K`K66,x1'6,x,$/™!0Mi!/*!i($V. /$n/%1j%|6@61S(75(%"!,4@61000131091C@•%7V%+rSY1<06O6!616I63Q;,4YQ_~6YI;63$YX166$6?61Y0;,4GQ>1Yj191<$6I639A6I;6366<0;,4[Q>1Y$6X1Y9g•1!66I;63<0;,4QAlA6Y$%66$6QD;H;I6DJ?6KD;INN[GNN9F;:;1I6<I6DJ?6JCzINN[GNN9F;:CzI6<I6D$J?6E;!A6INN[GNN9F;:I6(F;:;!A6I6<I6D$K6TAFK>IKCICLIXE>;C„PaY[K1•6$$gn6I;63(i731165AEJM0;,4…Q>%666?61FI6$?61F`62|k%6614,QD$E?61FI69<X1Y0:P?;H;PKD;9X1Y0D0<NEO6O6T6OD6PET6OI69A0T(HTIFTMJDLCK(C@MOT6OD6<=ED$E?61F`69KX<N`96O6O6<ET6OI6A0T(HTIFTMJDLCK(6T6OD6JCz;H;=E;,4†Q:#1MOT6OD66A6Y%71$121j96$<0D?6MOT6OD69F;:TI6(F ;:AI6(F;:OD1I6(F;:D1I6<I6J0DNNaNNa39A<(OD1(D1X@APTAFK>IKCICLIXE>;C„;H;]^e>NA!O6E;!A6OD1(YN6O666366(0@61360KT6OD66T6OD6(O(A(OD1(D1NL6616@@6MOT6OD6P;H;=MOT6OD6PKT6OD696T6OD6(T(A(OD1(D1<=X@=?6;,4dQ‡‚;,6z$310;mxI;63S%|i!6'!/ƒ>61%,-,$ƒKi$%71.,o,Q}nYQK2p/%TAFK>IKCICLIXE>;C„%73o0>/%%,-6O6O9"1ˆ("V6&I;63<SI;63,4!j$g630I2OD11+JK9$63<•%7$g63(D11+S63.$g0:15%n$/•*€+'$nS1T6OD62(+g%,-j•%7$gn663(6%i6MOT6OD626MOT6OD6NNrNN%#S;H;9MOT6OD6P;H;<$,4%i2%|6;H;kQ;H;PKD;9X1Y0D0<0:V'/$!$u%,-3o,xk2€1QKT6OD60}nGQK2''ijk(6?61F`6QJCz;H;0M#2!/1$gu%#,-116!B1'1j(m6j0;r16$Y63(i7!h%71€6611j(r%&'%"(1j6•-,QTBS".(3o61MOT6OD66•-$4866(8/%0Chạy tập tin MPEG trong VB6 K2g3mq15K%7%n!7%+6AD=H0;i76$&'$5SAD=HkK0D$J?61H=6EINNO110NNNN1H=6ENN9;:O=6I6(;:;@@E(;:II6<I6D$J?6HE6DM1INN![GNNNNHE6DM1NN9;:‰I6DE(;:‰E6DE(;:;@@I6<I6D$J?61EEINNO110NNNN1EENN9;:K611E(;:LEE(;:LII6(;:OK!I6<I6 K61F@F?M1PNNNNJ11F?M1ENAX@6P`K66(`K66(BY(=DD6H=9<;66=P`K660==D6DD6I=9;:MOF=;66<`K660=9<PMOF=D6KNN=NN=D6NA1X@6PY[(e(e(DD6H?M19<E?M1P1F?M1=D6DD6I?M19;:MOF?M1E<1F?M1PMOF?M1D6KNN?M1NN=D6N_l%55S%j,-D$E`K66FXD69<1F?M1P1F@F?M1=EN}€5%|,