您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 销售管理 > asp.net完全入门04
asp.netApplicationwebweborder/orderWebasp.net(AppDomain)/webasp.netHttpApplicationAsp.netHttpHttpApplicationASP.NETApplicationApplication%Application(counter)=CType(Application(counter)+1,Int32)%ApplicationApplication%Application.Lock()Application(counter)=CType(Application(counter)+1,Int32)Application.UnLock()%4.1.14.1.1.1WEBURLIISURL:://:\myapp”://@Applicationattribute=value[attribute=value]%%@Importnamespace=value%%@AssemblyName=assemblyname%scriptlanguage=”vb”runsat=server…/scriptbodyformrunat=server…/form/body/html1%@Applicationattribute=value[attribute=value]%ASP.NET%@ApplicationInherits=MyApp.ObjectDescription=Ourapp%MyappMyApp.ObjectOurapp”2%@Importnamespace=value%%@ImportNamespace=System.IO%%@ImportNamespace=System.NET”%3%@AssemblyName=assemblyname%assemblynamebinconfig.webconfig.webassemblyaddassembly=*//assemblybin%@AssemblyName=myassembly.dll%binmyassembly.dll4script/scriptbody/bodyform/form4.1.34.1.3.1config.webgb2312configurationglobalizationrequestencoding=gb2312responseencoding=gb2312//configuration4.1.3.2global.asaxscriptlanguage=VBrunat=serverSubApplication_Start(SenderAsObject,EAsEventArgs)EndSubSubApplication_End(SenderAsObject,EAsEventArgs)EndSubSubSession_Start(SenderAsObject,EAsEventArgs)EndSubSubSession_End(SenderAsObject,EAsEventArgs)EndSubSubApplication_BeginRequest(SenderAsObject,EAsEventArgs)EndSubSubApplication_EndRequest(SenderAsObject,EAsEventArgs)EndSub/script4.1.3.3webWindows2000AdvanceServerc:/inetpub/”web!--application/FormAppHellp.aspx--%@PageLanguage=VB%htmlheadtitlehelloworld/title/headbodycenterh1%Response.Write(HelloWorld!)%/h1/center/body/html4.1.4asp.netasp.net1IIS2global.asaxconfig.web3ApplicationImportAssemlyasp.netASP.NETConfig.web4.2.1ASP.NETASP.NETWEBASP.NETWEBASP.NETASP.NETASP.NETASP.NETXMLASP.NETASP.NET4.2.2ASP.NETXMLconfig.web”WINNT\Microsoft.NET\Framework\\config.webconfig.webASP.NETURLconfig.webURL:().\webapp\config.web().\webapp\owndir\config.web()4.2.3config.webconfiguration/configurationconfiguration…/configuration2)ASP.NETconfigsectionsaddname=type=//configsectionshttpmodules”httpconfigurationconfigsectionsaddname=httpmodulestype=System.Web.Configuration.HttpModulesConfigurationHandler//configsectionshttpmodulesaddtype=System.Web.SessionState.CookielessSessionModule/addtype=System.Web.Caching.OutputCacheModule/addtype=System.Web.SessionState.SessionStateModule/addtype=System.Web.Security.WindowsAuthenticationModule/addtype=System.Web.Security.CookieAuthenticationModule/addtype=System.Web.Security.PassportAuthenticationModule/addtype=System.Web.Security.CustomAuthenticationModule/addtype=System.Web.Security.UrlAuthorizationModule/addtype=System.Web.Security.FileAuthorizationModule//httpmodules/configuration4.2.4ASP.NEThttpmodulehttphttphandlersURLsIhttpHandlersessionstathttpglobalizationcompilationASP.NETtraceASP.NETsecurityASP.NETiisprocessmodelIISASP.NETbrowercaps4.2.5config.web!--config.webFormCfg.aspx--configuration!--test--configsectionsaddname=testtype=System.Web.Configuration.DictionarySectionHandler//configsectionstest!--key,justaconfiguretest--addkey=keyvalue=justaconfiguretest//test/configuration!--Application/FormCfg.aspx--htmlheadscriptlanguage=VBrunat=serversubpage_load(sasobject,easeventargs)'testkeyDimCfgSectionAsHashtable=Context.GetConfig(test)DimMsgAsString=CStr(CfgSection(key))lblMsg.text=Msgendsub/scripttitle/title/headbodycenterconfig.webtestkey:asp:labelid=lblmsgrunat=server//center/body/html4.2.6Config.webconfiguration!--SQLsql--appsettings/appsettings!----browsercaps/browsercaps!----compilationdebugmode=false!--vbPage--compilersdefaultlanguage=vb!--MSVSA.dll.vbB--compilerlanguage=VBextension=.vbtype=MSVSA.dll#Microsoft.VB.Compiler//compilersassemblies!--System.Data--addassembly=System.Data/!--System.Data--removeassembly=System.IO/!--config.web--clear//assemblies/compilation!----!--gb2312--globalizationfileencoding=gb2312requestencoding=gb2312responseencoding=gb2312/!----!--defaultredirect,modeoncustomerrors--!--modeoff,moderemoteonly--customerrorsdefaultredirect=AnErrorHasOccured.aspx?ErrNum=-1mode=remote!--500,redirect--errorstatuscode=500redirect=AnErrorHasOccured.aspx?ErrNum=500//customerrors!--webapp--locationpath=webapp”!--webapp--securityauthorizationdenyusers=?//authorization/security/location!----securityauthorization!--Admi
本文标题:asp.net完全入门04
链接地址:https://www.777doc.com/doc-6401287 .html