转至繁体中文版     | 网站首页 | 图文教程 | 资源下载 | 站长博客 | 图片素材 | 武汉seo | 武汉网站优化 | 
最新公告:     敏韬网|教学资源学习资料永久免费分享站!  [mintao  2008年9月2日]        
您现在的位置: 学习笔记 >> 图文教程 >> 站长学院 >> Web开发 >> 正文
ASP.NET 从Beta1 升级到 Beta2 的新变化         ★★★★

ASP.NET 从Beta1 升级到 Beta2 的新变化

作者:闵涛 文章来源:闵涛的学习笔记 点击数:3494 更新时间:2009/4/23 10:48:41
ed virtual void WriteAsyncRequest(Stream requestStream, object internalAsyncState);

protected WebResponse EndSend(IAsyncResult asyncResult, ref object internalAsyncState);

protected static object GetFromCache(Type type);

protected static void AddToCache(Type type, object value);

}

public abstract class HttpWebClientProtocol : WebClientProtocol {

          // Constructors

      protected HttpWebClientProtocol();

      // Properties

      public bool AllowAutoRedirect { get; set; }

      public CookieContainer CookieContainer { get; set; }

      public bool EnableCookies { get; set; }

      public string UserAgent { get; set; }

      public IWebProxy Proxy { get; set; }

      public ServicePoint { get; }

      // Methods

}

public class SoapHttpClientProtocol : HttpWebClientProtocol {

// Constructors

public SoapHttpClientProtocol();

// Properties

// Methods

public void Discover();

protected object[] Invoke(string methodName, object[] parameters);

protected IAsyncResult BeginInvoke(string methodName, object[] parameters, AsyncCallback callback, object asyncState);

protected object[] EndInvoke(IAsyncResult asyncResult);

}

public abstract class HttpSimpleClientProtocol : HttpWebClientProtocol {

// Constructors

protected HttpSimpleClientProtocol();

// Properties

// Methods

protected object Invoke(string methodName, string requestUrl, object[] parameters);

protected IAsyncResult BeginInvoke(string methodName, string requestUrl, object[] parameters, AsyncCallback callback, object asyncState);

protected object EndInvoke(IAsyncResult asyncResult);

}

public class HttpPostClientProtocol : HttpSimpleClientProtocol {

// Constructors

public HttpPostClientProtocol();

// Properties

// Methods

}

public class HttpGetClientProtocol : HttpSimpleClientProtocol {

// Constructors

public HttpGetClientProtocol();

// Properties

// Methods

}

         WebServiceUtil has been split into two tools: disco.exe and wsdl.exe. This is to simplify the command line arguments for using these features.

         The SoapExtension class now has a method for chaining the stream that can be overridden by SoapExtension writers. This allows chaining of the stream from the highest priority extension to the least, but calling the message orders from the least priority to highest.

         The method bool MessageEnumerator.MoveNext(TimeSpan timeout) is now void.

Old Code:

if(enumerator.MoveNext(timeout)){

ProcessNextMessage();

}

else{ StopProcessing(); }

New Code:

try{ enumerator.MoveNext(timeout));

ProcessNextMessage();

catch(TimeoutException){

StopProcessing();

}

         HttpCachePolicy.SetEtagFromFileDependencies() has been renamed to SetETagFromFileDependencies().

         The System.Web.UI.Web controls.Column.SortField property has been renamed to SortExpression. This is because it typically contains order information besides the field name, and might potentially contain multiple fields as well.

         Changes to Web controls (DataGrid, Table) and related classes.

         Renamed Column to DataGridColumn.

         Renamed ColumnCollection to DataGridColumnCollection.

         Removed TableRowCollection.AddWithCells().

         Removed TableCellCollection.AddWithContents().

         Changes to control and property attributes.

         Renamed TemplateAttribute to TemplateContainerAttribute.

         Replaced LiteralContentAttribute with PersistChildrenAttribute.

         Renamed PersistenceTypeAttribute to PersistenceModeAttribute.

         Replaced PersistenceMode.Tag with PersistenceMode.Attribute.

         Replaced PersistenceMode.Inner with PersistenceMode.InnerProperty.

         Replaced PersistenceMode.InnerChild with PersistenceMode.InnerDefaultProperty.

         Renamed ParseChildrenAsPropertiesAttribute to ParseChildrenAttribute.

         Changed Design-time control and template parsing. Any control and template parsing should be done by calling ControlParser.ParseControl() and ControlParser.ParseTemplate(), instead of calling ParseDesignerModeControl() and ParseDesignerModeTemplate() directly.

         The second parameter to the older DesignTimeData.DataBindingHandler() methods has been removed.

Old Code:

ParseDesignerModeControl(string, eventhandler)
ParseDesignerModeTemplate(string, eventhandler)

New Code:

ControlParser.ParseControl(IDesignerHost, string)
ControlParser.ParseTemplates(IDesignerHost, string)

         Changes to the control designer class hierarchy.

         Merged UserControlDesigner and WebControlDesigner into a single class called ControlDesigner.

         HtmlControlDesigner now derives directly from ComponentDesigner.

         Removed the old ControlDesigner class.

         Renamed PageletDesigner to UserControlDesigner.

         Renamed IUserControlDesignerBehavior to IControlDesignerBehavior.


New Hierarchy:
ComponentDesigner
    HtmlControlDesigner
        ControlDesigner
            TemplatedControlDesigner
            ReadWriteControlDesigner
            UserControlDesigner

         The WebFormDesigner in Visual Studio.NET should now derive from ComponentDesigner directly.

         All designers that derived from WebControlDesigner should derive from ControlDesigner.

         All designers that support template editing should derive from TemplatedControlDesigner, because support has been added for both Control-based and WebControl-based controls that have template properties.

         Changes to ASP.NET Control Designers DesignTimeHTML and Control.

         Renamed GetDesignTimeHTML to GetDesignTimeHtml.

         Similar renames for other Design-time HTML methods and GetPersistInnerHTML.

         Corresponding changes in IControlDesignerBehavior.

         OnControlResize and RaiseResizeEvent do not take any parameters. This method should only be called when the resize takes place due to a user action.

         Changes to System.Web.UI.Design.WebControlPersister.

         Renamed to ControlPersister.

         Methods Removed:

PersistChildControls()

PersistCollectionProperty()

PersistComplexProperty()

PersistStringProperty()

PersistTemplateProperty()

PersistDataBindings()

PersistTagProperties()

         All methods that took a StringWriter now take a TextWriter instead.

         All methods that took in an IWeb formservices now take in an IDesignerHost reference instead.

         Changes to Control and related clas

上一页  [1] [2] [3] [4] [5] [6] [7]  下一页


[Delphi程序]升级到Delphi 6 - 兼容性问题(中文全文)  [Delphi程序]升级到Delphi 6 - 兼容性问题之三(完)
[Delphi程序]升级到Delphi 6 - 兼容性问题之二  [Delphi程序]升级到Delphi 6 - 兼容性问题之一
[Web开发]彻底放弃IIS让Apache也支持ASP.NET  [Web开发]ASP.NET 2.0发送电子邮件中存在的问题
[Web开发]ASP.NET 2.0移动开发之属性重写和模板化  [Web开发]ASP.NET 2.0中实现模板中的数据绑定
[Web开发]ASP.NET 母版页概述  [Web开发]ASP.NET 2.0 ObjectDataSource控件
教程录入:mintao    责任编辑:mintao 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      注:本站部分文章源于互联网,版权归原作者所有!如有侵权,请原作者与本站联系,本站将立即删除! 本站文章除特别注明外均可转载,但需注明出处! [MinTao学以致用网]
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)

    同类栏目
    · Web开发  · 网页制作
    · 平面设计  · 网站运营
    · 网站推广  · 搜索优化
    · 建站心得  · 站长故事
    · 互联动态
    更多内容
    热门推荐 更多内容
  • 没有教程
  • 赞助链接
    更多内容
    闵涛博文 更多关于武汉SEO的内容
    500 - 内部服务器错误。

    500 - 内部服务器错误。

    您查找的资源存在问题,因而无法显示。

    | 设为首页 |加入收藏 | 联系站长 | 友情链接 | 版权申明 | 广告服务
    MinTao学以致用网

    Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved.
    闵涛 投放广告、内容合作请Q我! E_mail:admin@mintao.net(欢迎提供学习资源)

    站长:MinTao ICP备案号:鄂ICP备11006601号-18

    闵涛站盟:医药大全-武穴网A打造BCD……
    咸宁网络警察报警平台