博文
(2007-10-24 20:22:56)


=49&&lilKey



Dragatextboxontoaspxpage,copyandpasteonKeyDownevent.Thiswillvalidateyourinputtothetextboxandonlynumberscanbeenteredintothetextboxnotcharacters.Tryit.




[阅读全文]
阅读 ()评论 (0)
(2007-09-26 20:43:48)
ThistimeIusexmltextwritertowritexmlfileandconvertitintoastring(youcanalsowritetoafile).Ialsocreatedatasetandgeneratexmlfilewithschemaorwithout.IalsouseuseXPathNodeIteratertoselectanodeanduseXPathNavigatortomovetoandwriteoutalltheattributes.Prettymuchfun.Iwillpostthelater2someothertime.Again,"MCSDxmlwebservicesandservercomponent"isagoodbooktostartxmlandwebservicewith.Alotofwebsearchisve...[阅读全文]
阅读 ()评论 (0)
(2007-09-16 20:41:47)
Inthislab,Iamgoingtousesqlscriptto:Createatable:tocreateatable,youneedtochecktheexistencefirst.Ifitalreadyexists,youhavetodropthetable,then,createit.Ifyoudon’tchecktheexistenceandthetableisalreadythere,thecreatingtablestatementwillbreak.Addacolumn:againyouwillchecktheexistenceofthecolumnfirstandthanadditInsertdataintothetable:youwilldeletedatafirst,theninsertdataintothetable.Checkerroraftereachsq...[阅读全文]
阅读 ()评论 (0)
(2007-09-08 21:34:25)
MCAD/MCSDDEVELOPINGWEBAPPLICATIONWITHVISUALBASIC.NETandVISUALC#.NETisaverygoodbooktostartwebprogrammingwith,Whilehttp://msdn2.microsoft.com/en-us/library/isaverygoodwebsiteforreference.
Well,theywantaformortable,whereusercanenterdata,say,3columnsand4rows.
NotificationtypeNotificationinformationPreference
TextMessage_____________________________
Fax_____________________________
...[阅读全文]
阅读 ()评论 (0)
(2007-08-27 21:44:40)
Iamtryingtomakethisworkthistime.ImeanI'mgoingtopostthewholelab.
Downloadingistoloadsomethingfromservertoyourcomputerwhileuploadingistoloadsomething,likeadatafile,fromyourcomputertosomeserver.Inthislab,userwillclickalinktoopenaexcelfile,enterdata,savetosomediskonlocalcomputer.Clickbrowsebuttontobrowsethesavedfileandthenclicktheuploadbuttontoinserttheentereddataasastringintosomecellsinsqlserve...[阅读全文]
阅读 ()评论 (0)
(2007-08-19 17:20:25)
Thisisthemostusefulkeyboardshortcutsthateverexisted:
Ctrl+>
In.netframework,ifyouforgettoincludeanamespace(theusingstatementontheverytopofcode,forexample:usingsystem),youwillreceivesomecompiletimeerrors:somegreenwigglylineundersomeobjects.Forexample,ifyouforget"usingSystem.Data.SqlClient;",whenyouuse"SqlParameter"or"SqlDataReader"inyourcode,youwillseegreenwi...[阅读全文]
阅读 ()评论 (0)
(2007-08-12 20:43:54)
Adatagrid(sayfromadatatableinsqlserverdatabase)isloadedontoapageinpageloadprocedure.Oneofthecolumns(eachcellinthecolumncontainsacheckboxandonlyonecheckbox)containscheckboxes.Someofthecheckboxesarealreadycheckedwhenpageisloaded.Hereclientcancheckmore.Theworkistoinsertamessageintodatabasetablewhenanycheckboxisnewlycheckedbutnotthosealreadycheckedwhenthepageisloaded.
Iputthecheckedonesinanarray...[阅读全文]
阅读 ()评论 (1)
(2007-08-10 21:01:55)
Afewdaysaftershecametothecompany,herbosshadaprivateconversationwithher:"Pleasepracticetypinganddon'ttypeinfrontofotherpeoplebecauseyourspeedscaresme."
Oneday,beforeaBBQ,thebosswantedtomakesureonelastthingandIMher:
Bosssaid:hey!
Shewantedtosay"yes?"buttomakeitfastersheomitted"?"(itreallytakestimeforhertofind"?")andsentit.Sothesecondscreenwas:阅读全文]
阅读 ()评论 (2)
(2007-08-03 22:54:03)
Transactionisalogicalunitofworkthatshouldbeentirelycompletedorabort,nointermediatestateisallowed.Forexample,ifyousellaproducttoacustomer,yourtransactionconsistsofatleasttwoparts:youmustupdatetheinventorybysubtractingthenumberofunitessold,andyoumustupdatetheaccountsreceivabletableinordertobillthecustomer.Youwanteitherupdatingbothtablesorneither.Updatingonlyoneisnotacceptable.
InSQLyouuse"...[阅读全文]
阅读 ()评论 (0)
(2007-08-03 21:57:09)
Iamfine.Iwisheverybodyissafeandsoundandawayfromthecollapseofthebridge.Pleasestaysafeallthetime.Andstayhealthyallthetime.Andstayhappyallthetime.
[阅读全文]
阅读 ()评论 (0)
[1]
[2]
[尾页]