Inthischapter,you'lllearn:WhatWebPagesandWebMatrixare,plushowtoinstalleverything,getstarted,anddeploysites.IntroducingASP.NETWebPages2ByMikePope|May18,2012ThissetoftutorialsgivesyouanoverviewofASP.NETWebPages(version2)andRazorsyntax,alightweightframeworkforcreatingdynamicwebsites.ItalsointroducesWebMatrix,atoolforcreati...WebsiteCreationwithWebMatrix(Intermedia...
ASPFileSystemObjectObject«PreviousNextChapter»TheFileSystemObjectobjectisusedtoaccessthefilesystemonaserver.TryitYourself-ExamplesDoesaspecifiedfileexist?Howtocheckifafileexists.Doesaspecifiedfolderexist?Howtocheckifafolderexists.Doesaspecifieddriveexist?Howtocheckifadriveexists.GetthenameofaspecifieddriveHowtogetthenameofaspecifieddrive.Getthenameoftheparentf...
ASPCookies«PreviousNextChapter»Acookieisoftenusedtoidentifyauser.TryitYourself-ExamplesWelcomecookieHowtocreateaWelcomecookie.WhatisaCookie?Acookieisoftenusedtoidentifyauser.Acookieisasmallfilethattheserverembedsontheuser'scomputer.Eachtimethesamecomputerrequestsapagewithabrowser,itwillsendthecookietoo.WithASP,youcanbothcreateandretrievecookievalues.HowtoCreate...
ASPSessionObject«PreviousNextChapter»ASessionobjectstoresinformationabout,orchangesettingsforausersession.TheSessionobjectWhenyouareworkingwithanapplicationonyourcomputer,youopenit,dosomechangesandthenyoucloseit.ThisismuchlikeaSession.Thecomputerknowswhoyouare.Itknowswhenyouopentheapplicationandwhenyoucloseit.However,ontheinternetthereisoneproblem:thewebserverdoesnotk...