{"id":468,"date":"2006-08-29T15:10:00","date_gmt":"2006-08-29T15:10:00","guid":{"rendered":"http:\/\/www.sincebirth.cn\/?p=468"},"modified":"2006-08-29T15:10:00","modified_gmt":"2006-08-29T15:10:00","slug":"professional-aspnet-20%e4%b9%8b%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e6%96%87%e4%bb%b6%e5%a4%b9%ef%bc%8dapplication-folders","status":"publish","type":"post","link":"https:\/\/sincebirth.space\/?p=468","title":{"rendered":"Professional ASP.NET 2.0\u4e4b\u5e94\u7528\u7a0b\u5e8f\u6587\u4ef6\u5939\uff0dApplication Folders"},"content":{"rendered":"<div id=\"blog_text\" class=\"cnt\">\n<div class=\"postTitle\" ><a href=\"http:\/\/www.cnblogs.com\/zhhui\/archive\/2006\/03\/21\/354545.html\" >Professional ASP.NET 2.0\u4e4b\u5e94\u7528\u7a0b\u5e8f\u6587\u4ef6\u5939\uff0dApplication Folders<\/a > <\/div >\n<div class=\"postText\" ><strong >1.\\App_Code Folder<br \/><\/strong >\u3000\u3000\\App_Code\u6587\u4ef6\u5939\u662f\u5b58\u8d2eclasses\uff0c.wsdl\u6587\u4ef6\u548ctyped datasets\u7684\u5730\u65b9\u3002\u4f60\u7684\u89e3\u51b3\u65b9\u6848\u4e2d\u7684\u6240\u6709\u9875\u9762\u53ef\u4ee5\u81ea\u52a8\u8bbf\u95ee\u5b58\u8d2e\u5728\u8fd9\u4e2a\u6587\u4ef6\u5939\u7684\u4efb\u4f55\u4e00\u4e2a\u9879\u76ee\u3002\u5982\u679c\u8fd9\u4e9b\u9879\u76ee\u662f\u4e00\u4e2aclass (.vb or .cs)\uff0c\u5219Visual Studio 2005\u4f1a\u81ea\u52a8\u68c0\u6d4b\u5e76\u7f16\u8bd1\u5b83\uff1b\u4e5f\u4f1a\u81ea\u52a8\u5730\u521b\u5efa\u6e90\u4e8e.wsdl\u6587\u4ef6\u7684XML Web service proxy class\uff1b\u6216\u8005\u4e00\u4e2a\u6e90\u4e8e.xsd\u6587\u4ef6\u7684\u4e00\u4e2atyped dataset\u3002<br \/>\u3000\u3000\u4e0b\u9762\u770b\u4e00\u4e2a\u5728\u4f60\u89e3\u51b3\u65b9\u6848\u4e2d\u4f7f\u7528\\App_Code\u6587\u4ef6\u5939\u7684\u7b80\u5355class\u7684\u4f8b\u5b50\uff1a<br \/>\u9996\u5148\u5728\\App_Code\u6587\u4ef6\u5939\u4e2d\u5efa\u7acb\u4e00\u4e2aCalculator.vb \u6216 Calculator.cs\u6587\u4ef6\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p><strong >Listing 3-14: The Calculator class<\/strong ><br \/><strong >VB<\/strong ><\/p>\n<div style=\"BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px sol\" ><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/None.gif\" align=\"top\" \/><span style=\"COLOR: #0000ff\" >Imports<\/span ><span style=\"COLOR: #000000\" >&nbsp;Microsoft.VisualBasic<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ExpandedBlockStart.gif\" align=\"top\" \/><img decoding=\"async\" style=\"DISPLAY: none\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ContractedBlock.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #0000ff\" >Public<\/span ><span style=\"COLOR: #000000\" >&nbsp;<\/span ><span style=\"BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff\" >Class&nbsp;Calculator<\/span ><span ><span style=\"COLOR: #0000ff\" >Class<\/span ><span style=\"COLOR: #000000\" >&nbsp;Calculator<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ExpandedSubBlockStart.gif\" align=\"top\" \/><img decoding=\"async\" style=\"DISPLAY: none\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ContractedSubBlock.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #0000ff\" >Public<\/span ><span style=\"COLOR: #000000\" >&nbsp;<\/span ><span style=\"BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff\" >Function&nbsp;Add()<\/span ><span ><span style=\"COLOR: #0000ff\" >Function<\/span ><span style=\"COLOR: #000000\" >&nbsp;Add(<\/span ><span style=\"COLOR: #0000ff\" >ByVal<\/span ><span style=\"COLOR: #000000\" >&nbsp;a&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >As<\/span ><span style=\"COLOR: #000000\" >&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >Integer<\/span ><span style=\"COLOR: #000000\" >,&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >ByVal<\/span ><span style=\"COLOR: #000000\" >&nbsp;b&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >As<\/span ><span style=\"COLOR: #000000\" >&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >Integer<\/span ><span style=\"COLOR: #000000\" >)&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >As<\/span ><span style=\"COLOR: #000000\" >&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >Integer<\/span ><span style=\"COLOR: #000000\" ><br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/InBlock.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #0000ff\" >Return<\/span ><span style=\"COLOR: #000000\" >&nbsp;(a&nbsp;<\/span ><span style=\"COLOR: #000000\" >+<\/span ><span style=\"COLOR: #000000\" >&nbsp;b)<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ExpandedSubBlockEnd.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #0000ff\" >End&nbsp;Function<\/span ><\/span ><span style=\"COLOR: #000000\" ><br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ExpandedBlockEnd.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #0000ff\" >End&nbsp;Class<\/span ><\/span ><\/div ><strong >C#<\/strong ><\/p>\n<div style=\"BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px sol\" ><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/None.gif\" align=\"top\" \/><span style=\"COLOR: #0000ff\" >using<\/span ><span style=\"COLOR: #000000\" >&nbsp;System;<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/None.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #0000ff\" >public<\/span ><span style=\"COLOR: #000000\" >&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >class<\/span ><span style=\"COLOR: #000000\" >&nbsp;Calculator<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ExpandedBlockStart.gif\" align=\"top\" \/><img decoding=\"async\" style=\"DISPLAY: none\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ContractedBlock.gif\" align=\"top\" \/><\/span ><span style=\"BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff\" ><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/dot.gif\" \/><\/span ><span ><span style=\"COLOR: #000000\" >{<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/InBlock.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #0000ff\" >public<\/span ><span style=\"COLOR: #000000\" >&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >int<\/span ><span style=\"COLOR: #000000\" >&nbsp;Add(<\/span ><span style=\"COLOR: #0000ff\" >int<\/span ><span style=\"COLOR: #000000\" >&nbsp;a,&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >int<\/span ><span style=\"COLOR: #000000\" >&nbsp;b)<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ExpandedSubBlockStart.gif\" align=\"top\" \/><img decoding=\"async\" style=\"DISPLAY: none\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ContractedSubBlock.gif\" align=\"top\" \/><\/span ><span style=\"BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff\" ><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/dot.gif\" \/><\/span ><span ><span style=\"COLOR: #000000\" >{<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/InBlock.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #0000ff\" >return<\/span ><span style=\"COLOR: #000000\" >&nbsp;(a&nbsp;<\/span ><span style=\"COLOR: #000000\" >+<\/span ><span style=\"COLOR: #000000\" >&nbsp;b);<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ExpandedSubBlockEnd.gif\" align=\"top\" \/>}<\/span ><\/span ><span style=\"COLOR: #000000\" ><br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ExpandedBlockEnd.gif\" align=\"top\" \/>}<\/span ><\/span ><\/div >\u5176\u6b21\u662f\u5bf9\u8fd9\u4e2aclass\u7684\u4f7f\u7528\uff0c\u770b\u4e0b\u9762\u7684\u4e00\u4e2a\u7b80\u5355\u7684.aspx\u6587\u4ef6\uff1a<br \/><strong >Listing 3-15: An .aspx page that uses the Calculator class<br \/>VB<br \/><\/strong ><\/p>\n<div style=\"BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px sol\" ><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/None.gif\" align=\"top\" \/><span style=\"COLOR: #000000\" >&lt;<\/span ><span style=\"COLOR: #000000\" >%@&nbsp;Page&nbsp;Language<\/span ><span style=\"COLOR: #000000\" >=<\/span ><span style=\"COLOR: #000000\" >\u201dVB\u201d&nbsp;%<\/span ><span style=\"COLOR: #000000\" >&gt;<\/span ><span style=\"COLOR: #000000\" ><br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/None.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #000000\" >&lt;<\/span ><span style=\"COLOR: #000000\" >!DOCTYPE&nbsp;html&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >PUBLIC<\/span ><span style=\"COLOR: #000000\" >&nbsp;\u201c<\/span ><span style=\"COLOR: #000000\" >-\/\/<\/span ><span style=\"COLOR: #000000\" >W3C<\/span ><span style=\"COLOR: #000000\" >\/\/<\/span ><span style=\"COLOR: #000000\" >DTD&nbsp;XHTML&nbsp;<\/span ><span style=\"COLOR: #000000\" >1.1<\/span ><span style=\"COLOR: #000000\" >\/\/<\/span ><span style=\"COLOR: #000000\" >EN\u201d<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/None.gif\" align=\"top\" \/>\u201chttp:<\/span ><span style=\"COLOR: #000000\" >\/\/<\/span ><span style=\"COLOR: #000000\" >www.w3.org<\/span ><span style=\"COLOR: #000000\" >\/<\/span ><span style=\"COLOR: #000000\" >TR<\/span ><span style=\"COLOR: #000000\" >\/<\/span ><span style=\"COLOR: #000000\" >xhtml11<\/span ><span style=\"COLOR: #000000\" >\/<\/span ><span style=\"COLOR: #000000\" >DTD<\/span ><span style=\"COLOR: #000000\" >\/<\/span ><span style=\"COLOR: #000000\" >xhtml11.dtd\u201d<\/span ><span style=\"COLOR: #000000\" >&gt;<\/span ><span style=\"COLOR: #000000\" ><br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/None.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #000000\" >&lt;<\/span ><span style=\"COLOR: #000000\" >script&nbsp;runat<\/span ><span style=\"COLOR: #000000\" >=<\/span ><span style=\"COLOR: #000000\" >\u201dserver\u201d<\/span ><span style=\"COLOR: #000000\" >&gt;<\/span ><span style=\"COLOR: #000000\" ><br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ExpandedBlockStart.gif\" align=\"top\" \/><img decoding=\"async\" style=\"DISPLAY: none\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ContractedBlock.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #0000ff\" >Protected<\/span ><span style=\"COLOR: #000000\" >&nbsp;<\/span ><span style=\"BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff\" >Sub&nbsp;Page_Load()<\/span ><span ><span style=\"COLOR: #0000ff\" >Sub<\/span ><span style=\"COLOR: #000000\" >&nbsp;Page_Load(<\/span ><span style=\"COLOR: #0000ff\" >ByVal<\/span ><span style=\"COLOR: #000000\" >&nbsp;sender&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >As<\/span ><span style=\"COLOR: #000000\" >&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >Object<\/span ><span style=\"COLOR: #000000\" >,&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >ByVal<\/span ><span style=\"COLOR: #000000\" >&nbsp;e&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >As<\/span ><span style=\"COLOR: #000000\" >&nbsp;System.EventArgs)<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/InBlock.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #0000ff\" >Dim<\/span ><span style=\"COLOR: #000000\" >&nbsp;myCalc&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >As<\/span ><span style=\"COLOR: #000000\" >&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >New<\/span ><span style=\"COLOR: #000000\" >&nbsp;Calculator<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/InBlock.gif\" align=\"top\" \/>Label1.Text&nbsp;<\/span ><span style=\"COLOR: #000000\" >=<\/span ><span style=\"COLOR: #000000\" >&nbsp;myCalc.Add(<\/span ><span style=\"COLOR: #000000\" >12<\/span ><span style=\"COLOR: #000000\" >,&nbsp;<\/span ><span style=\"COLOR: #000000\" >12<\/span ><span style=\"COLOR: #000000\" >)<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ExpandedBlockEnd.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #0000ff\" >End&nbsp;Sub<\/span ><\/span ><span style=\"COLOR: #000000\" ><br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/None.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #000000\" >&lt;\/<\/span ><span style=\"COLOR: #000000\" >script<\/span ><span style=\"COLOR: #000000\" >&gt;<\/span ><\/div ><strong >c#<br \/><\/strong ><\/p>\n<div style=\"BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px sol\" ><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/None.gif\" align=\"top\" \/><span style=\"COLOR: #000000\" >&lt;%<\/span ><span style=\"COLOR: #000000\" >@&nbsp;Page&nbsp;Language<\/span ><span style=\"COLOR: #000000\" >=<\/span ><span style=\"COLOR: #000000\" >\u201dC#\u201d&nbsp;<\/span ><span style=\"COLOR: #000000\" >%&gt;<\/span ><span style=\"COLOR: #000000\" ><br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/None.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #000000\" >&lt;!<\/span ><span style=\"COLOR: #000000\" >DOCTYPE&nbsp;html&nbsp;PUBLIC&nbsp;\u201c<\/span ><span style=\"COLOR: #000000\" >&#8211;<\/span ><span style=\"COLOR: #008000\" >\/\/<\/span ><span style=\"COLOR: #008000\" >W3C<\/span ><span style=\"COLOR: #008000\" >\/\/<\/span ><span style=\"COLOR: #008000\" >DTD&nbsp;XHTML&nbsp;1.1<\/span ><span style=\"COLOR: #008000\" >\/\/<\/span ><span style=\"COLOR: #008000\" >EN\u201d<\/span ><span style=\"COLOR: #008000\" ><br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/None.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #000000\" >\u201chttp:<\/span ><span style=\"COLOR: #008000\" >\/\/<\/span ><span style=\"COLOR: #008000\" >www.w3.org\/TR\/xhtml11\/DTD\/xhtml11.dtd\u201d&gt;<\/span ><span style=\"COLOR: #008000\" ><br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/None.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #000000\" >&lt;<\/span ><span style=\"COLOR: #000000\" >script&nbsp;runat<\/span ><span style=\"COLOR: #000000\" >=<\/span ><span style=\"COLOR: #000000\" >\u201dserver\u201d<\/span ><span style=\"COLOR: #000000\" >&gt;<\/span ><span style=\"COLOR: #000000\" ><br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/None.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #0000ff\" >protected<\/span ><span style=\"COLOR: #000000\" >&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >void<\/span ><span style=\"COLOR: #000000\" >&nbsp;Page_Load(<\/span ><span style=\"COLOR: #0000ff\" >object<\/span ><span style=\"COLOR: #000000\" >&nbsp;sender,&nbsp;System.EventArgs&nbsp;e)<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ExpandedBlockStart.gif\" align=\"top\" \/><img decoding=\"async\" style=\"DISPLAY: none\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ContractedBlock.gif\" align=\"top\" \/><\/span ><span style=\"BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff\" ><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/dot.gif\" \/><\/span ><span ><span style=\"COLOR: #000000\" >{<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/InBlock.gif\" align=\"top\" \/>Calculator&nbsp;myCalc&nbsp;<\/span ><span style=\"COLOR: #000000\" >=<\/span ><span style=\"COLOR: #000000\" >&nbsp;<\/span ><span style=\"COLOR: #0000ff\" >new<\/span ><span style=\"COLOR: #000000\" >&nbsp;Calculator();<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/InBlock.gif\" align=\"top\" \/>Label1.Text&nbsp;<\/span ><span style=\"COLOR: #000000\" >=<\/span ><span style=\"COLOR: #000000\" >&nbsp;myCalc.Add(<\/span ><span style=\"COLOR: #000000\" >12<\/span ><span style=\"COLOR: #000000\" >,&nbsp;<\/span ><span style=\"COLOR: #000000\" >12<\/span ><span style=\"COLOR: #000000\" >).ToString();<br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/ExpandedBlockEnd.gif\" align=\"top\" \/>}<\/span ><\/span ><span style=\"COLOR: #000000\" ><br \/><img decoding=\"async\" src=\"http:\/\/www.cnblogs.com\/Images\/OutliningIndicators\/None.gif\" align=\"top\" \/><\/span ><span style=\"COLOR: #000000\" >&lt;\/<\/span ><span style=\"COLOR: #000000\" >script<\/span ><span style=\"COLOR: #000000\" >&gt;<\/span ><\/div >\u90a3\u4e48\u5982\u4f55\u5728\\App_Code\u6587\u4ef6\u5939\u4f7f\u7528\u4e24\u4e2a\u4e0d\u540c\u8bed\u8a00\u7684class\u5462\uff1f<br \/>\u9996\u5148\u5728\\App_Code\u6587\u4ef6\u5939\u4e2d\u6dfb\u52a0\u4e24\u4e2a\u5b50\u6587\u4ef6\u5939\uff1a\u4e00\u4e2a \\VB \u6587\u4ef6\u5939\u548c\u4e00\u4e2a \\CS \u6587\u4ef6\u5939\u3002<br \/>\\App_Code<br \/>\u3000\u3000\\VB<br \/>\u3000\u3000\u3000\u3000Add.vb<br \/>\u3000\u3000\\CS<br \/>\u3000\u3000\u3000\u3000Subtract.cs<br \/>\u5176\u6b21\u4fee\u6539web.config\u6587\u4ef6\u5982\u4e0b\uff1a<br \/><strong >Listing 3-17: Structuring the web.config file so that classes in the \\App_Code folder can use different languages<\/strong ><br \/>&lt;compilation&gt;<br \/>\u3000\u3000&lt;codeSubDirectories&gt;<br \/>\u3000\u3000\u3000\u3000&lt;add directoryName=\u201dVB\u201d&gt;&lt;\/add&gt;<br \/>\u3000\u3000\u3000\u3000&lt;add directoryName=\u201dCS\u201d&gt;&lt;\/add&gt;<br \/>\u3000\u3000&lt;\/codeSubDirectories&gt;<br \/>&lt;\/compilation&gt;<\/p>\n<p><strong >2.\\App_Data Folder<br \/><\/strong >\\App_Data\u6587\u4ef6\u5939\u662f\u5e94\u7528\u7a0b\u5e8f\u5b58\u8d2e\u6570\u636e\u7684\u5730\u65b9\uff0c\u53ef\u4ee5\u5305\u62ecMicrosoft SQL Express \u6587\u4ef6(.mdf files), Microsoft Access \u6587\u4ef6(.mdb files), XML \u6587\u4ef6\u7b49\u3002<\/p>\n<p><strong >3.\\App_Themes Folder<\/strong ><\/p>\n<p>\\App_Themes\u6587\u4ef6\u5939\u662f\u5b58\u8d2easp.net 2.0\u65b0\u7279\u6027\u4e3b\u9898\u9700\u8981\u4f7f\u7528\u7684 .skin \u6587\u4ef6, CSS\u6587\u4ef6\u548cimages\u6587\u4ef6\u7684\u5730\u65b9\u3002<\/p>\n<\/div ><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Professional ASP.NET 2.0\u4e4b\u5e94\u7528\u7a0b\u5e8f\u6587\u4ef6\u5939\uff0dApplication Folders 1. &hellip; <a href=\"https:\/\/sincebirth.space\/?p=468\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cProfessional ASP.NET 2.0\u4e4b\u5e94\u7528\u7a0b\u5e8f\u6587\u4ef6\u5939\uff0dApplication Folders\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-468","post","type-post","status-publish","format-standard","hentry","category-all"],"views":1651,"_links":{"self":[{"href":"https:\/\/sincebirth.space\/index.php?rest_route=\/wp\/v2\/posts\/468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sincebirth.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sincebirth.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sincebirth.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sincebirth.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=468"}],"version-history":[{"count":0,"href":"https:\/\/sincebirth.space\/index.php?rest_route=\/wp\/v2\/posts\/468\/revisions"}],"wp:attachment":[{"href":"https:\/\/sincebirth.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sincebirth.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sincebirth.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}