1、为什么页面可以用Cache而类或者WebService不可以?如果可以请问如何使用?
2、为什么页面可以用Trace而类或者WebService不可以?如果可以请问如何使用?
3、为什么ASP.NET_2.0没默认有BIN目录,生成的本站点DLL又是存放在哪里?
4、假设PlaceHolder ph是位于页面,Page_Load写有if(!this.IsPostBack)ph.Controls.Add(new Lable("writestring..."));并且ph的视图状态是启用的,那么为什么在PostBack后ph不能保持住状态继续显示Lable和Lable的"writestring..."?

解决方案 »

  1.   

    1. you can, if your service class is derived from WebService class, you can use Context.Cache or you can always use System.Web.HttpRuntime.Cache2. yes, you can use System.Diagnostics.Trace as long as you connect to the right listener, aspx pages just happen to allow you to set Trace=true in the page directive, so you will be able to see the messages in the page. You probably want to use a soap trace program to see how the soap messages are exchanged3. the compilation model in ASP.NET 2.0 is a little different, you can still have a bin directory, seehttp://msdn.microsoft.com/asp.net/whidbey/beta2update.aspx4. because PlaceHolder doesn't remember dynamically created controls, you have to re-create them or to move the code outside if(!this.IsPostBack)
      

  2.   

    我知道了~!
    谢谢~!
    不过ENG也不是很难看懂~!
    何况偶有绿色版的FASTAIT2006~!