且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

网络中3.5和4.0之间的区别是什么

更新时间:2023-01-14 07:52:20

看看这个链接:

http://***.com/questions/2900258/what-are-the-major-differences-between-net-frameworks-3-5-and-4-0 [ ^ ]。



Google [ ^ ],您将获得更多链接。
Have a look at this link:
http://***.com/questions/2900258/what-are-the-major-differences-between-net-frameworks-3-5-and-4-0[^].

Please do Google[^], you will get many more links.


您可以像这样更改您的问题

.NET Framework 4中的新功能 [ ^ ]

无论如何

Microsoft .NET Framework 3.5和.NET Framework 4.0之间的区别 [ ^ ]
You may change your question like this
What's New in the .NET Framework 4[^]
Anyway
Difference Between Microsoft .NET Framework 3.5 and .NET Framework 4.0[^]


ASP.NET 3.5和ASP之间的主要区别.NET 4.0。



ASP.NET 3.5具有以下主要功能,这在以前的版本中是不可用的



1)AJAX集成

2)LINQ

3)自动属性

4)Lambda表达式



我希望每个人都能了解asp.net 3.5及其下一个版本asp.net 4.0的差异。

由于空间消耗,我在这里仅列出其中一些。



1)客户数据访问:





ASP.NET 3.5:没有直接的方法来从客户端访问数据。我们可以选择任何一种方法



1)脚本管理器的页面方法

2)ICallbackEventHandler接口

3)XMLHttphanlder组件



ASP.NET 4.0:在这个框架中有一个内置的功能。以下是实施它们的方法。



1)客户数据控制

2)客户模板

3 )客户数据背景



即我们可以通过客户数据视图访问数据&来自客户端的数据上下文对象。



2)设置Meta关键字和元描述:





元关键字和描述对于在搜索引擎中列出非常有用。



ASP.NET 3.5:它有一个添加元的功能如下标签





< meta name =keywordscontent =这些,是,我的,关键字/>

< meta name =descriptioncontent =这是我的页面的描述/>







ASP.NET 4.0:在这里我们可以在Page指令中添加关键字和描述,如下所示。





< %@ Page Language =C#CodeFile =Default.aspx.cs

Inherits =_ Default

Keywords =Keyword1,Key2,Key3等

描述=描述%>







3)Enableviewstage每个控件的属性



ASP.NET 3.5:此属性有两个值True或false



ASP.NET 4.0:ViewStateMode属性采用具有三个值的枚举:Enabled,Disabled和Inherit。

此处inherit是控件的子控件的默认值。



4)设置客户ID

有时ClientID属性会为程序员创建头部。



ASP.NET 3.5:我们必须使用ClientID属性来查找动态生成的id



ASP.NET 4.0:引入了新的ClientIDMode属性最小化早期版本的ASP.NET的问题。



它具有以下值。



AutoID - 与ASP.NET 3.5相同

静态 - 运行时不会产生任何单独的clientid

可预测 - 这些特别用于datacontrols。格式类似于带有clientid vlaue的clientIDrowsuffix

Inherit-此值指定控件的ID生成与其父级相同。









以下是.Net 4.0中的主要变化列表



Web.config文件中的ControlRenderingCompatabilityVersion设置

ClientIDMode更改

HtmlEncode和UrlEncode现在编码单个引号

ASP。 NET页面(.aspx)解析器更严格

浏览器定义文件更新

从根网站配置文件中删除System.Web.Mobile.dll

ASP.NET请求验证

默认哈希算法现在是HMACSHA256

与新ASP.NET 4根配置相关的配置错误

ASP.NET 4在ASP.NET 2.0或ASP.NET 3.5应用程序下,子应用程序无法启动

ASP.NET 4网站无法启动从安装了SharePoint的计算机开始

HttpRequest.FilePath属性不再包含PathInfo值

ASP.NET 2.0应用程序可能会生成引用eurl.axd的HttpException错误>
事件处理程序可能不会在IIS 7或IIS 7.5中的默认文档中引发集成模式对ASP.NET代码访问安全性(CAS)实现的更改

MembershipUser和其他类型已移动System.Web.Security命名空间

输出缓存更改为Vary * HTTP标头

System.Web.Security Passport类型已过时

MenuItem.PopOutImageUrl属性无法在ASP.NET 4中渲染图像

Menu.StaticPopOutImageUrl和Menu.DynamicPopOutImageUrl当路径包含反斜杠时无法渲染图像
Main Differences between ASP.NET 3.5 and ASP.NET 4.0.

ASP.NET 3.5 is having the following main features which are not availablle in the prior releases

1) AJAX integration
2) LINQ
3) Automatic Properties
4) Lambda expressions

I hope it would be useful for everyone to know about the differences about asp.net 3.5 and its next version asp.net 4.0

Because of space consumption I'll list only some of them here.

1) Client Data access:


ASP.NET 3.5: There is no direct method to access data from client side. We can go for any of these methods

1) Pagemethods of script manager
2) ICallbackEventHandler interface
3) XMLHttphanlder component

ASP.NET 4.0: In this framework there is an inbuilt feature for this. Following are the methods to implement them.

1) Client data controls
2) Client templates
3) Client data context

i.e we can access the data through client data view & data context objects from client side.

2) Setting Meta keyword and Meta description:


Meta keywords and description are really useful for getting listed in search engine.

ASP.NET 3.5: It has a feature to add meta as following tag


<meta name="keywords" content="These, are, my, keywords" />
<meta name="description" content="This is the description of my page" />



ASP.NET 4.0: Here we can add the keywords and description in Page directives itself as shown below.


< %@ Page Language="C#" CodeFile="Default.aspx.cs"
Inherits="_Default"
Keywords="Keyword1,Key2,Key3,etc"
Description="description" %>



3) Enableviewstage property for each control

ASP.NET 3.5: this property has two values "True" or "false"

ASP.NET 4.0: ViewStateMode property takes an enumeration that has three values: Enabled, Disabled, and Inherit.
Here inherit is the default value for child controls of a control.

4) Setting Client IDs
Some times ClientID property creates head ach for the programmers.

ASP.NET 3.5: We have to use ClientID property to find out the id which is dynamically generated

ASP.NET 4.0: The new ClientIDMode property is introduced to minimize the issues of earlier versions of ASP.NET.

It has following values.

AutoID - Same as ASP.NET 3.5
Static - There won't be any separate clientid generated at run time
Predictable-These are used particularly in datacontrols. Format is like clientIDrowsuffix with the clientid vlaue
Inherit- This value specifies that a control's ID generation is the same as its parent.




Following are list of Major Changes in .Net 4.0

ControlRenderingCompatabilityVersion Setting in the Web.config File
ClientIDMode Changes
HtmlEncode and UrlEncode Now Encode Single Quotation Marks
ASP.NET Page (.aspx) Parser is Stricter
Browser Definition Files Updated
System.Web.Mobile.dll Removed from Root Web Configuration File
ASP.NET Request Validation
Default Hashing Algorithm Is Now HMACSHA256
Configuration Errors Related to New ASP.NET 4 Root Configuration
ASP.NET 4 Child Applications Fail to Start When Under ASP.NET 2.0 or ASP.NET 3.5 Applications
ASP.NET 4 Web Sites Fail to Start on Computers Where SharePoint Is Installed
The HttpRequest.FilePath Property No Longer Includes PathInfo Values
ASP.NET 2.0 Applications Might Generate HttpException Errors that Reference eurl.axd
Event Handlers Might Not Be Not Raised in a Default Document in IIS 7 or IIS 7.5 Integrated Mode Changes to the ASP.NET Code Access Security (CAS) Implementation
MembershipUser and Other Types in the System.Web.Security Namespace Have Been Moved
Output Caching Changes to Vary * HTTP Header
System.Web.Security Types for Passport are Obsolete
The MenuItem.PopOutImageUrl Property Fails to Render an Image in ASP.NET 4
Menu.StaticPopOutImageUrl and Menu.DynamicPopOutImageUrl Fail to Render Images When Paths Contain Backslashes