杨云's profileMicrosoft.NET BLOG(YunYa...PhotosBlogLists Tools Help

Blog


    May 03

    关于新书

    最近有朋友询问新书发布情况,在此申明ASP.NET3.5企业自动化系统研发宝典一书因故可能推荐1-2月发布,尽情关注。多谢。
    January 06

    欢迎报考微软开发者认证

    微軟認證程式開發專家 (Microsoft Certified Professional Developer , MCPD)

    若您正使用 Visual Studio 2005 來開發 .NET Framework 2.0 應用程式,新的微軟認證技術專家 (MCTS) 和微軟認證程式開發專家 (MCPD) 認證可提供一個更簡單明確的架構來展現您的技術技能,以及特殊開發人員工作角色所需的技能。

    微軟認證應用程式開發工程師 (MCAD) 和微軟認證解決方案開發工程師 (MCSD) 認證提供 .NET 開發技能和經驗的業界的認可給使用 Visual Studio .NET 的開發人員。

    今天就展現您的高人一等和技能。

    Visual Studio 2005 認證

    微軟認證技術專家 (MCTS) 認證可展現您在使用 .NET Framework 2.0 和 Visual Studio 2005 來開發 Windows、Web 或分散式應用程式的知識。這裡有三種 MCTS 認證方向:

    Technology Specialist: .NET Framework 2.0 Web Applications
    Technology Specialist: .NET Framework 2.0 Windows Applications
    Technology Specialist: .NET Framework 2.0 Distributed Applications

    微軟認證程式開發專家 (MCPD) 認證可凸顯您的工作角色、強調您的特殊專長領域。現在您可輕鬆證明自己是 Windows 開發、Web 應用程式開發或企業應用程式開發的專家。這裡有三種 MCPD 認證方向:

    Professional Developer: Web Developer
    Professional Developer: Windows Developer
    Professional Developer: Enterprise Applications Developer

    Visual Studio .NET 認證

    微軟認證應用程式開發工程師 (MCAD) 認證可提供業界認可給使用 Microsoft Visual Studio .NET 和 Web 服務來建立強大的應用程式的專業開發人員。

    微軟認證應用程式開發工程師 (MCAD)

    Microsoft .NET 的微軟認證解決方案開發工程師 (MCSD) 認證是高階開發人員的頂級認證。這些開發人員會使用 Microsoft 開發工具和技術、以及 Microsoft .NET Framework 來設計和開發最先進的企業解決方案。

    微軟認證解決方案開發工程師 (MCSD)

    December 25

    团队年度扛鼎图书即将上市.NET Framework3.5开发技术详解

    该书在1月正式上市,全面讲解.NET 3.5技术,非常适合初学者。

    本书可读性高,全部原创内容保证图书高质高量,并且由工业与信息化部中央级出版社--人民邮电出版社出版发行

    书评:3人
    本书详细讲解了关于微软.NET Framework 3.5的技术,对于.NET开发人员是本不错的读物.
    ---梁振 微软(中国)有限公司
     
    对于微软最新技术.NET Framework 3.5,本书做了最好的诠释。你在阅读中会发现其易懂易实践,是.NET开发人员不可多得的工具书之一。
    ---庄新村  博士/教师 上海交通大学
     
    我读过后发现自己对微软.NET Framework 3.5有了更加深刻的理解,我觉得对您也应该有很大的帮助。
    本书真的很通俗易懂,很适合初学者阅读。
    ---东北大学 计算机研究所博士研究生 刘珺
     

    October 31

    办公平台开发最新图书--基于ASP.NET3.5新技术

    全书完整的讲解了一个大型的企业办公平台,将分13个章节按照模块分类逐一的讲解详细的设计过程。

    在严格遵循软件工程3层代码架构的基础上,本书的第1章详细的给读者介绍办公平台从需求分析到数据流的内容,让读者非常清晰的掌握系统各个模块的结构和联系。第2章将分析办公平台各个模块的业务逻辑,让读者清楚设计什么,为何设计。第3章将按照模块逐一介绍办公平台的业务逻辑设计。从第4章开始介绍办公平台各个模块的数据访问层设计和代码设计。从第5章到第13章将按照系统所包括的模块逐一详细介绍设计方法和原理。讲述严格按照软件工程模式从数据库DB设计到UI界面和交互代码。

    需要读者注意:本书将给读者介绍开发具有自定义工作流程、复杂权限配置、及时信息提示、在线公文处理等功能的强大实例系统。讲述这些WEB办公平台领域的核心技术将让读者快速熟悉并掌握其开发原理。本书在配合极具价值的配套项目代码的基础上,相信可以让读者做到活学活用。

    本书基于成熟的VS2005/VS2008 +IIS7.0+IE7.0+SQL Server2005平台进行创作,所以不管技术如何变化,读者都可以一直将本书作为参考和查阅图书。

    精彩缩影:

    (4)待审核报告

    任何的单位和下属部门都需要制订自己的任务安排和详细信息的报告,这些目标信息是需要被上级领导查阅并审核的。

    该功能点需要满足该需求,它将分成2个部门显示未审核报告的清单,分别是:个人目标报告和处室目标报告。

    目标管理模块通过上述需求和功能分析,将内含功能点按照功能划分绘制模块功能需求图。模块功能需求图如图1-6所示。

    clip_image002

    图1-6目标管理模块需求图

    (2)自定义工作流模型

    自定义工作流是在静态工作流的基础上发展起来的,它的出现为办公平台开启了更广大的应用范围。

    作为静态工作流模式的补充,它能够更加灵活的适应各种企事业单位的需求。在以往的静态模式下,办公平台的工作流程具有特定性,换一个企业可能就不适用了。而自定义工作流模式可以允许单位所指派的用户设计本单位所需要的工作流程和各个环节的人员,整个工作流程的设计过程没有任何的限制,直到该用户完成所需要的流程设计。

    本书也将讲述自定义工作流模型的设计方法,根据范例办公平台可以把自定义工作流模块划分为3个部分,分别是:发文管理、收文管理、流程管理。

    在发文管理功能中具体包括的功能有:发文办理、已经批阅、发文起草。在实际的自定义工作流公文流转中,当一位员工发出了自己的公文信息后需要能够查看已经发出公文的办理情况,对于已经办理完成的公文能够再次查阅。对于一份新起草的公文,用户可以根据自己的需要选择任何一个系统所拥有的公文流转的流程模型,选择合适的流程后便可以撰写和启动公文审批流程了。

    发文管理的功能通过上述需求和功能分析,将内含功能点按照功能划分绘制功能需求图。发文管理的功能需求图如图1-11所示。

    clip_image002[4]

    图1-11自定义流程的发文管理功能需求图

    在收文管理功能中具体包括的功能有:我的收文、收文归档、全部收文。该功能点支持显示每一项公文的流转状态、当前该公文所处流转环节、详细介绍信息。

    在查阅公文信息的同时,自定义工作流程还需要能够让每次流转到的人员履行相应的处理任务。该需求就需要允许拥有对应权限的用户能够审批轮到他的公文信息,签署自己的意见。

    敬请诸位期待正式的发布之日。。。

    September 12

    MSDN发布了MVP资料

    MSDN发布了MVP资料
    有兴趣的朋友可以去查看。

    回到首页

    杨云

    杨云

    Expertise:ASP/ASP.NET | Blog

    在Microsoft ASP.NET技术体系方面主要研究方向是ASP.NET技术在实际项目中的简便开发、典型设计模式在WEB开发中的运用亦即ASP.NETA安全部署技术。开发的系统主要分2类,企业级应用如MIS、CRM、BOSS、集成SPS、VSS扩展开发等。政府级应用如OA WorkFlow,Office System扩展开发等。
    长期从事微软ASP.NET技术方面的培训,为微软新闻组和多个杂质报纸选写文章和技术支持。微软指定培训中心讲师,微软最有价值专家(Microsoft MVP)。
    最新文章:专家准备中

    地址:
    September 04

    security 4 ASP.NET -编写安全的ASP.NET应用

    Hi,everybody:
    I hav't written article for a long period until busy working.As my msn said:"My head grew heavy and my sight grew dim".
    so I bring a new session about "security 4 ASP.NET",it will be a series subjects.
    Today let me post the vol.1.
    Event Log
    The Windows event log is probably the most widely known logging facility, and its API is nicely
    wrapped in the Microsoft .NET Framework. You simply call EventLog.WriteEntry and pass in the
    event source (that is, the name of your application), a message, and an event type (warning, error,
    or critical). This will write the event to the application log.
    public static void LogToEventLog(string message,
    EventLogEntryType type, int id)
    {
    EventLog.WriteEntry("Accounting Application",message, type, id);
    }
    An event source must be registered before it can be used. Only an administrator can create new
    event sources; the ASP.NET worker process does not have the required privileges to do so. The
    easiest solution is to write a simple console application that pre.creates the event source at
    application installation time. Afterward, your least privilege daemon account can write to the event
    log.
    Creating an Event Source
    static void Main(string[] args)
    {
    EventLog.CreateEventSource(args[0], "Application");
    }
    If you need more control, you can also create your own event log. Name the log after the
    application, for example, Accounting Application, and register event sources such as Front End and
    Data Access Component.
    Creating a Custom Event Log
    static void Main(string[] args)
    {
    string logName = "Accounting Application";
    if (!EventLog.Exists(logName))
    {
    EventLog.CreateEventSource("Front End", logName);
    EventLog.CreateEventSource("Data Access Component", logName);
    EventLog.CreateEventSource("Financial Component", logName);
    }
    }
    The code for writing to a custom event log changes only slightly.
    Writing to a Custom Event Log
    public static void LogToEventLog(string message,
    EventLogEntryType type, int id)
    {
    EventLog evt =
    new EventLog("Accounting Application", ".", "Front End");
    evt.WriteEntry(message, type, id);
    }
    no end ,just waitting more!
    This photo make me remember a lovely girl who give me reailty love,but I hurted her.Sorry!
    June 27

    新书预告-《.NET Framework 3.5开发指南》(暂定名)

    《.NET Framework 3.5开发指南》

    该书历时一年编撰而成,该书由美国MYSPACE公司高级工程编写,我负责全书的统筹和编撰总指导。

    全书序由东北大学 计算机博士生导师执笔。

    全书内容简介

    第1 章 本章介绍了.NET 3.0/3.5的作用和在.NET体系结构中的作用,并对.NET 3.0/3.5各个主要的模块做了概要性的介绍。

    第2章 介绍.NET 3.5新的功能。包括C# 3.5新增的语法功能、Visual Studio 2008的使用、结合实例介绍了LINQ的使用以及ASP.NET 3.5的新特性和控件。

    第3 章 详细介绍了WPF的由来,以及基本知识。基本知识包括XAML语言简述、WPF相关命名空间、WPF应用程序的分类以及演示了如何创建一个WPF应用程序。

    第4章 本章讲解了WPF的窗口布局方式,通过详尽的示例结合讲解,将WPF窗口的布局相关的控件的特点以及如何使用进行了讲述。

    第5章 从WPF控件的基本概念入手,对WPF控件的要点进行了逐一的介绍,包括WPF的控件模型、RoutedEvent、Dependency Property和控件如何处理用户事件等知识,最后对.NET 3.0中内置的WPF控件逐一进行了举例说明。

    第6章 本章对如何在WPF中定义资源、使用资源、数据绑定的知识结合示例进行了讲解。

    第7章 对于如何使用WPF的样式,本章从WPF样式的优点、样式的分类、样式的定义和使用和样式触发器深入的介绍了WPF样式的知识,并结合示例讲解了控件模板的实现。

    第8章 本章按照由图形学的基础知识开始到WPF的绘图对象,再到WPF的视口变化,再从2D到3D的顺序对WPF的基础绘图机制和对象有个全面的了解。

    第9章 WPF对多种媒体内容的支持

    第10章 对WPF的一些高级应用做了一个介绍,包含了自定义控件的编写、与Winform程序的互操作、异步操作的支持和界面自动化技术的支持。

    第11章 面向服务构架(SOA)已经成为了一种趋势,本章对SOA的本质进行了一些解说,让读者对SOA的作用和趋势有一定的了解,同时介绍了WCF与SOA的关系、WCF的优点和基础知识

    第12章 介绍了WCF的3种契约:服务契约、操作契约和数据契约的作用和使用方法,同时也演示了如何创建WCF的服务端和客户端程序。

    第13 章 本章对WCF的通信基础——消息交换做了详尽的解说,包括了消息交换的各个方面的概念——信道、终结点、契约、绑定,以及它们之间的关系都进行了说明;另外,对WCF消息系统支持的消息交换、数据传输方式都进行了说明。

    第14章 对服务在并发环境下的行为进行了描述,并对影响服务的并发行为的因素进行了逐一讲解,务求是读者了解到各个不同的选择对并发的影响。

    第15章 讲解了WCF对事务支持,并配以示例对事务的使用进行了讲解。

    第16章 对WCF的安全策略和机制进行了细致的讲解,并针对具体的环境的安全侧路的选择给出了建议。

    第17章 从服务和客户端的运行时特性、传输信道、元数据、序列化等方面对WCF的扩展性进行了一次较为全面的讲述。

    第18章 对WCF服务在不同环境下(IIS、控制台程序、Windows程序、Windows服务和WAS)运行的方式一一进行了举例说明,并对每种运行环境给出了示例。

    第19章 对工作流在.net framekwork中的作用、工作流的基本类型、如何使用工作流等内容进行了讲解,务求使读者在本章的内容中对工作流有个大概认识,并能开始开发简单的工作流程序。

                                                                                          杨云

     

    内容截图预览:

    无标题11

    May 21

    致尊敬的读者

    由于ASP.NET2.0典型项目开发》一书在发行之后,光盘代码广泛流传于网络。每天都有读者通过该BLOG联系我,需要索取光盘代码。
    在这里对大家表示感谢,如果您遗失光盘或者是图书馆借阅无光盘,请按照书中邮箱写信,我会及时向你提供资料。请不要直接通过该BLOG索取。
     
     
    特别提醒:该书配套光盘不光含有项目代码,还有我录制的视频教程。请选择正规渠道获取本书技术支持通道。
     
     
                                                                    再次感谢大家。
    March 26

    IIS7管理工具包新特性

    IIS要发布最新的管理包了。功能还算不错,添加了网管非常期待的站点初步流量统计功能,具体还是看Soctt的表达吧:

    IIS 7 Admin Pack Preview 1 Released

    Last week the IIS team shipped the first technical preview of some really cool administration modules that I think web developers will find super useful.  This preview adds several new features to the IIS7 Admin Tool:

    • Database Manager: Built-in SQL Server database management, including the ability to create, delete, and edit tables and indexes, create/edit SPROCs and execute custom queries.  Because it is integrated in the IIS administration tool it all works over HTTP/SSL - which means you can use the module to remotely manage your hosted applications (even with low-cost shared hosting accounts), without having to expose your database directly on the Internet.

    • Log Reports: Built-in report visualization with charting support for log files data.  Full range selection and custom chart creation is supported, as well as the ability to print or save reports.  Like the database manager you can use this module remotely over HTTP/SSL - which means it works in remote shared hosting scenarios.

    • Configuration Editor: This is a power module that provides complete control over editing all web.config settings within the admin tool.  You can configure it to track the changes you make using the UI and have it auto-generate configuration change scripts that you can then save and tweak to re-run later in an automated way.

    • Request Filtering UI: This admin module provides more control over the new request filtering feature in IIS7.  Check out Carlos' blog post here for details on how to use it.

    • .NET Authorization: This admin module provides a custom authorization rules editor which allows you to more easily manage the ASP.NET <authorization> configuration section.

    • FastCGI UI: This admin module provides more support for editing all the new <fastCGI> settings (for when you use FastCGI modules with IIS7 like PHP).

    Below are some screen-shots and simple walkthroughs of the Log Reporting and Database Manager administration UI modules:

    Log Reporting Admin Module

    Have you ever deployed a web application onto a server and wondered how much load it is getting?, what the average response time from the server is?, or whether many server errors are occurring (and if so on what URLs)?  All of these settings are carefully logged by IIS in a text based log file.  Today most people use command-line tools like the IIS Log Parser utility to query and analyze these files.

    The IIS 7 Admin Pack and the new "IIS Reports" admin module now enable you to also query and chart your reports graphically within the IIS admin tool:

    Out of the box the "IIS Reports" admin module comes with a bunch of pre-built logparser-based reports that you can easily run on your sites and applications:

    Below is a simple graphical report we could pull up that looks at the HTTP status codes being returned by my "TestSite" application (note how we are using the "bar graph" visualization option):

    Reports can optionally be filtered using a date range.  You can also push the print or save buttons within the report page to generate a printer or a local saved version of the report.

    The IIS7 Admin Tool is a rich client application (built using WinForms) - but it does all of its remote access and work using HTTP based web-services that connect to the remote web-server.  This means it will work through firewalls, and a hoster does not need to open up ports in their network in order to enable it. 

    Once a hoster installs the IIS 7 Admin Pack on their web-servers, remote customers managing their hosted sites using the IIS admin tool (which is built-into Vista and available as a download for Windows XP clients) will automatically be prompted to enable the IIS Reports admin module (the install of the client-side module is seamless).  They'll then be able to use the reports module inside their admin tool to pull up reports for their remote hosted sites.

    Note: hosters can optionally disable this feature if they want, or choose to restrict or customize the list of reports provided.  Hopefully most hosters will chose to just make this a standard feature of all IIS and ASP.NET plans they offer.

    Database Manager Module

    Have you ever deployed your application and database to a remote hosting provider and wanted to make a quick change to the database (but your hosting provider didn't support accessing it using the SQL admin tool)?  Using the new "database manager" module within the IIS admin tool you can now remotely access your database and make changes to it using HTTP/SSL through the web-server. 

    Just connect your IIS administration tool to your remote site and click the new "Database Manager" icon:

    By default the Database Manager module will look at the <connectionStrings> section of your web application's web.config file, and allow you to easily access any of the databases your hosted application is using. 

    For example, below my TestSite application has a "NorthwindConnectionString" setting in the <connectionStrings> section of my web.config (which is why it shows up in my list of connection nodes).  When I click it I can view and edit my SPROCs and Table Schema (including indexes):

    We could right-click on any table to edit the row data within it, or alternatively perform a custom SQL query to retrieve a custom set of data:

    What is nice is that a hoster can easily enable all of the above database admin features for both dedicated and shared hosting plans (even when there are hundreds or thousands of customers on a single server).  Like all other modules in the admin tool, all communication between the rich client front-end and the backend at the hoster is done over HTTP/SSL based web-services (meaning it goes through firewalls and doesn't require the hoster to open any new ports - nor expose the SQL server directly on the Internet). 

    Hopefully this database administration module will just be a standard feature that all IIS hosters enable - which will make remote hosted data management much easier going forward.

    Summary

    Over time you'll see even more admin UI modules be shipped in the IIS 7 Admin Pack and many more features enabled (Carlos, who runs the dev team building the admin tool, is actively asking for suggestions on what you'd like to see via his blog - so drop him a comment if you have a suggestion or want to provide some encouragement).

    You can download the first technical preview of IIS 7 Admin Pack release here as well as learn more about it via the online documentation here.  The above modules work with both the IIS7 release in Vista SP1 as well as Windows Server 2008.

    February 26

    VS IDE插件网站上线

    The Microsoft Visual Studio Ecosystem team would like to inform you about the upcoming Visual Studio Gallery site (http://visualstudiogallery.com) that we will be announcing on Wednesday February 27th. This new web site will a resource center for all Visual Studio extensions. It will include everything from free VS PowerToys like tools to VSIP products. Any developer will be able to post information and a link for their Visual Studio extensions. Our goal for this website is to give developers an easy way to find extensions for Visual Studio. Visual Studio extensions might include products and free applications in the form of macros, add-ins, packages, project templates, or other types of extensions to Visual Studio that are packaged up and ready to use by the developer to improve their development experience.
    January 28

    写在战前的2008

    朋友们,眼看马上就要到中国的传统佳节--春节了。
    在我眼中的2007年,是战斗的一年,是奋起的一年,是蓄势的一年。
    在面对困难时,我选择
    在面对不利条件时,我选择
    在新的挑战前,我依旧选择
    在新的一年忠心的祝福我妈妈身体健康,祝福支持我的朋友合家幸福,万事如意。
    最近发现一个规律,凡是心怀鬼胎,拉帮结伙耍黑段的人都衰老的贼快。25,26岁的人,看上去就像个40左右的男人。可悲,可叹。应该是诡计考虑太多的结果。这可能就是报应吧?
    最后我通过微软的对联系统生成一幅对联,送给朋友们也送给我自己。我们都辛苦了。2008年我来了,且战且行!

    duilian_STLiti_mobilemouseyearmoney

                                                                                                    
                                                                                                            杨云 
                                                                                           2008新春祝
     
    December 23

    Happiness and Wealth

    Living standards have soared during the twentieth century, and economists expect them to continue rising in the decades ahead. Does that mean that we humans can look forward to increasing Happiness?

       Not necessarily, warns Richard A. Easterlin, an economist at the University of Southern California, in his new book, Growth Triumphant: The Twenty-first Century in Historical Perspective. Easterlin concedes that richer people are more likely to report themselves as being happy than poorer people are. But steady improvements in the American economy have not been accompanied by steady increases in people's self-assessments of their own Happiness. "There has been not improvement in average Happiness in the United States over almost a half century----a period in which real GDP per capita more than doubled," Easterlin reports.

       The explanation for this paradox may be that people become less satisfied over time with a given level of income. In Easterlin's word: "As incomes rise, the aspiration level does too, and the effect of this increase in aspirations is to vitiate the expected growth in Happiness due to higher income."

       Money can buy Happiness, Easterlin seems to be saying, but only if one's amounts get bigger and other people aren't getting more. His analysis helps to explain sociologist Lee Rainwater's finding that Americans' perception of the income "necessary to get along" rose between 1950 and 1986 in the same proportion as actual per capita income. We feel rich if we have more than our neighbors, poor if we have less, and feeling relatively well off is equated with being happy.

       Easterlin's findings, challenge psychologist Abraham Maslow's "hierarchy of wants" as a reliable guide to future human motivation.

       Maslow suggested that as people's basic material wants are satisfied they seek to achieve nonmaterial or spiritual goals. But Easterlin's evidence points to the persistence of materialism.

       "Despite a general level of affluence never before realized in the history of the world." Easterlin observes, "Material concerns in the wealthiest nations today are as pressing as ever and the pursuit of material need as intense." The evidence suggests there is no evolution toward higher order goals. Rather, each step upward on the ladder of economic development merely stimulates new economic desires that lead the chase ever onward. Economists are accustomed to deflating the money

       value of national income by the average level of prices to obtain "real" income. The process here is similar----real income is being deflated by rising material aspiration, in this case to yield essentially constant subjective economic well-being. While it would be pleasant to envisage a world free from the pressure of material want, a more realistic projection, based on the evidence, is of a world in which generation after generation thinks it needs only another 10% to 20% more income to be perfectly happy.

       Needs are limited, but not greeds. science has developed no cure for envy, so our wealth boosts our Happiness only briefly while shrinking that of our neighbors. Thus the outlook for the future is gloomy in Easterlin's view.

       "The future, then, to which the epoch of modern economic growth is leading is one of never ending economic growth, a world in which ever growing abundance is matched by ever rising aspirations, a world in which cultural difference is leveled in the constant race to achieve the goods life of material plenty, it is a world founded on belief in science and the power of rational inquiry and in the ultimate capacity of humanity to shape its own destiny. The irony is that in this last respect the lesson of history appears to be otherwise: that there is no choice. In the end, the triumph of economic growth is not a triumph of humanity over material wants; rather, it is the triumph of material wants over humanity."

    Happiness and Wealth

    December 21

    正式发布基于VS2008的AJAX模板包

    Using VS2008 to Target .NET Framework 2.0 with ASP.NET AJAX

    As I mentioned last month, VS 2008 fully supports building applications for .NET Framework 2.0...   This is very important as it will take time for some hosters and IT organizations to fully deploy .NET Framework 3.5, but you don't want that to block you from taking full advantage of the cool features in VS 2008

    Today we released ASP.NET 2.0 AJAX Templates for VS2008.  This release contains project templates for using Visual Studio 2008 or Visual Web Developer 2008 to create new web sites and web applications with ASP.NET AJAX Extensions features. The project templates contain specific references to assemblies in .NET Framework 2.0 and ASP.NET 2.0 AJAX Extensions 1.0.

    Download the ASP.NET 2.0 AJAX Templates for VS2008!

    To try these out, make sure you have ASP.NET AJAX Extensions installed, then install the ASP.NET AJAX Templates for Visual Studio 2008.  

    Then, go to File->New Project and select .NET Framework 2.0 as the target runtime.  That will filter down the options and you should see "AJAX 1.0-Enabled ASP.NET 2.0 Web Application".  Select it.

    image 

    Notice the assembly reference in web.config is fixed up to be the 1.0 version number...

     <system.web>
        <pages>
          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI" 
                 assembly="System.Web.Extensions, Version=1.0.61025.0, ...
    </controls> </pages>

    Now you are all set up to get the power of developing with VS 2008, but target .NET Framework 2.0.

    December 18

    简历该如何书写

    请大家看看这个人是谁,人家是如何书写人生简历的。共勉。
    1809.2.12,生日 

      1818(9),母亲去世。 

      1831(22),经商失败。 

      1832(23),竞选州议员落选。 

      同年 (23),工作丢了。想就读法学院,但未获入学资格。 

      1833(24),向朋友借钱经商。 

      同年年底(24),再次破产。接下来,他花了16年时间才把债还清。 

      1834(25),再次竞选州议员,这次赢了。 

      1835(26),订婚后即将结婚时,未婚妻死了。 

      1836(27),精神完全崩溃,卧病在床六个月。 

      1838(29),争取成为州议员的发言人——没有成功。 

      1840(31),争取成为选举人——落选了。 

      1843(34),参加国会大选——又落选了。 

      1846(37),再次参加国会大选——这回当选了。前往华盛顿特区,表现可圈可点。 

      1848(39),寻求国会议员连任,失败。 

      1849(40),想在自己州内担任土地局长的工作,遭到拒绝。 

      1854(45),竞选美国参议员,落选。 

      1856(47),在共和党内争取副总统的提名——得票不足100张。 

      1860(51),当选美国总统。成为美国历史上最伟大的总统之一。
    December 14

    关于动态数据的新功能-ASP.NET3.5

    最近没时间自己写BLOG,特地转一篇来自ASP.NET之父SCOTT大帅哥的新文章:

    New ASP.NET Dynamic Data Support

    The ASP.NET 3.5 Extensions CTP we shipped this past weekend contains a bunch of great new features.

    One of the cool new features is something we call "ASP.NET Dynamic Data Support".  In a nutshell this enables you to really quickly build data driven web-sites that work against a LINQ to SQL (and in the future LINQ to Entities) object model - and optionally allows you to-do this without having to build any pages manually.

    The best way to see this in action is to watch David Ebbo's awesome 17 minute screen-cast:

    You can also follow the steps below to easily get started and use the dynamic data support:

    Step 1: Create a ASP.NET Dynamic Data Site:

    Once you have the ASP.NET 3.5 Extensions CTP release installed, you can use VS 2008 or the free Visual Web Developer 2008 Express to create a new Web Site or Web Application Project that has the ASP.NET dynamic data support enabled:

    This will create a new web-site you can use that has some default template files in them, along with CSS style-sheets you can use to customize the look and feel of them:

    Step 2: Add a LINQ to SQL Data Model to Your Site

    LINQ to SQL is an O/RM (object relational mapper) that ships in .NET 3.5, and which allows you to model a relational database using .NET classes.  You can then query the database using LINQ, as well as update/insert/delete data from it.  LINQ to SQL fully supports transactions, views, and stored procedures.  It also provides an easy way to integrate data validation and business logic rules into your data model.

    The easiest way to get started with an ASP.NET Dynamic Data site is to add a new LINQ to SQL data model to your project (right-click->add new item->LINQ to SQL Classes item).  This will bring up the LINQ to SQL class designer.  Drag database tables from your server explorer to define a set of classes (with relationships) for your database schema:

    Step 3: Enable Dynamic Templates in Your Project:

    By default ASP.NET Dynamic Data projects provide built-in support for creating automatic "scaffolding" views of your LINQ to SQL and LINQ to Entities data models.  Dynamic Data projects include template pages and user controls that can automatically create built-in data browsing/editing/selection/deleting UI that is dynamically constructed at runtime based on the LINQ to SQL or LINQ to Entities data model you've added to your project.

    To enable this auto-scaffolding support, open the web.config file of your project, search for the "dynamicData" section within it, and set the "enableTemplates" attribute to "true":

    Note: this auto-scaffolding feature is currently turned off by default for security reasons (we want you to be explicit about turning it on). 

    Note: as you can see above, the ASP.NET dynamic data section provides optional URL mapping support that allows you to customize the URLs for your dynamic scaffold pages to be in whatever URL format you want.

    Step 4: Run Your Site

    Hit F5 to run your project.  You'll by default be taken to a default.aspx page that lists all of the table objects in your data model:

    Note: the default.aspx home-page is in the project - if you don't like how it looks just open it up and edit it however you want.

    Clicking on any of the table names in the list above will take you to a dynamic data page that lists the data within it:

    The default data view pages automatically create functional data navigation UI that includes built-in data paging and editing support (and are ASP.NET AJAX enabled):

    The data view pages automatically infer relationships between your related objects and provide automatic filtering support:

    The data view pages also automatically show relationships between your objects and allow users to easily navigate amongst them.  For example, notice how the Category column for products allows me to navigate to the category details for a specific product:

    The data view pages also enable automatic selection, editing and delete support.  Notice below how when in inline edit mode they automatically infer friendly foreign key names (allowing you to edit the "Category" and pick a name from a dropdownlist instead of having to specify a "CategoryID" integer):

    All of this works without having to create a single custom .aspx page or write any custom code.  All of the web UI is created dynamically off of your LINQ to SQL or LINQ to Entities data model.

    Step 5: Customizing the Site Further

    Having all of the above functionality work out of the box against your ORM data model is great for quickly getting your site up and running.  Once you get the basic site experience working, you can optionally go in and fully customize it - both at the data validation/business logic level as well as at the UI layer.

    You can add standard LINQ to SQL data model and business validation rules to your data model in order to enforce constraints.  The dynamic data pages will automatically work off of this logic, and provide appropriate error messages and validation UI based on them. 

    You can also optionally go in and customize the UI of any of the data pages you want.  Dynamic data projects allow you to customize the default look and feel of all data pages on the site, as well as customize the default look and feel of all column types used on the site.  You can customize both of these via the default template files added under the "/App_Shared" folder when you create a new dynamic data project:

    Simply edit any of the files above to customize the default data page views and/or default data column appearances. 

    You can also then optionally override the UI of specific data view pages by explicitly adding a .aspx page that maps to it in your project.  For example, I could override the default ListDetails behavior for Products by adding a \Products\ListDetails.aspx page to my project:

    You can then add any standard ASP.NET data control to the page.  You can also use the new dynamic data aware ASP.NET data controls that ship in the ASP.NET 3.5 Extensions CTP to the page.  These allow you to completely customize the look and feel of the UI - while still using the new dynamic meta-data provider to infer relationships and meta-data about your data model classes for default behavior.

    November 26

    Try Visual Studio 2008

    Try Visual Studio 2008

    Microsoft Visual Studio 2008 provides an industry-leading developer experience for Windows Vista, the 2007 Microsoft Office system, and the Web. In addition, it continues in the Microsoft tradition of development language innovation. To enable evaluation of Visual Studio 2008, this page provides links to trial versions of Visual Studio 2008. For more information, see Visual Studio 2008 Product Information.

    90-Day Trial Downloads

    Current MSDN Professional and Premium Subscribers can download Visual Studio 2008 from MSDN Subscriber Downloads.

    In addition, you can download the free Visual Studio 2008 Express Editions and Microsoft .NET Framework 3.5.

    November 13

    Upgrading your ZUNE 1(EST AM 2:30 USA)

    For you Zune 30 owners out there, today(EST AM 2:30 USA) you'll be getting the firmware update (woot). Our buddy Jason at Zune Thoughts produced a video detailing the upgrade experience. Check it out:

     

    November 06

    嫦娥卫星的技术花絮

    最近大家都关心嫦娥,今天粘贴点关于嫦娥卫星的技术信息。
    FYI FROM YaoFei
    对于地面使用的软件,特别是大家在电视上看到的每个人面前的监视终端,是一台运行在Windows2000上的普通PC机,监视软件也是普通的VC编写的,各个型号基本都差不多,在一套代码基础上按照每个型号的遥测处理格式和要求略有一些定制。
    大部分软件体制还是脱胎于西安。真正的发指令和接收数据还是靠西安在干活。
    型号研制单位自己的测试系统和软件不在此范围内,各种花样都有,运行在自己的总装总测场地。

    至于星上的软件,仅对嫦娥而言,主要的数管和姿控导航两个分系统各自使用了一台基于欧洲ERC32处理器的计算机,主频不超过30MHz, 没有通常意义的操作系统,在RTEMS的基础上大幅度剪裁剩下一点点残渣作为底层的硬件和进程管理,上面跑自己的应用软件完成功能。编译器是erc32ccs,  GCC的定制版本,支持SPARC V7处理器和RTEMS, ESA提供的,高兴了可以去免费下载玩玩.   有效载荷软件大部分都是基于MCS51的单片机系统,个别设备也许有DSP.
    由于前段时间发生了用导弹摧毁FY-1C卫星的事情,国际上已经完全不相信中国所谓气象卫星是民用项目的幌子,给了各种本来就对中国存在敌意的国家和组织以口实,现在想继续买ERC32和欧洲生产的其他星载处理器已经几乎完全没有可能,美国就更不要说了。一些后续型号基本上面临无米下锅的难题。
    October 24

    微软官方论坛注册有奖

    本人暂时代为管理和维持:微软官方技术论坛-- 微软中文技术论坛(MSDN and TechNet) » ASP.NET & AJAX » Web相关讨论(IIS等) 
     地址:http://forums.microsoft.com/china/
    有相关问题的朋友可以访问并提出你的问题。

    FYI:
    为了鼓励更多的人知道和参与到微软中文技术论坛中,我们从昨天开始发布了一个最新的活动——新手报道有奖!我们专门成立了一个区叫做新手报道区,希望大家能帮助宣传。
    October 22

    上帝安排的World Champion

    KIMI是世界冠军,这个在昨天是属于奇迹级别的。今天KIMI是 world champion。诡异的胜利,本人力挺的KIMI果然夸张的夺冠!
    这个正验证了中国人的因果论,小人和一切障碍在最后被上帝干掉了!不需要理由。
    联想到我本人也是,最近2年曾到的公司惨遇极端恶心反胃的小人。哈哈~~~不过想象也是,小人也要生存。所以使用打压,陷阱,撒烂药等阴招也在意料之中。不过内心的不安和丑陋会陪伴它们终生!人模狗样的,其实是一堆滥狗屎。
    归根结底:人生的任何成绩都毫无意义,关键是活的坦荡,问心无愧才是根本。
    祝贺KIMI,一个和我一样正直,内敛的人。:)
    F1巴西奇迹莱科宁首夺世界冠军汉密尔顿功亏一篑