标签: ASP.NET

  • ASP.NET密技集錦(C#) – 許嘉仁

    ASP.NET密技集錦(C#)繁體中文版,作者許嘉仁恆逸資訊許嘉仁著名講師。此篇介紹C#技巧的文章,關於Server Control的文章,對於有些朋友來說,文章不算太難,主要是介紹經驗,作者希望通過實例讓程式師活用Server Control中的相關技巧,提高你的代碼水準。

    點擊下載:ASP.NET密技集錦(C#)

  • ASP.NET 開發實戰寶典

    ASP.NET 開發實戰寶典
    1111.jpg

    本書從初學者的角度講述使用ASP.NET進行Web 應用程式開發所需掌握的各項技術,突出“基礎”、“全面”、“深入”的特點,同時就像書名所暗示的一樣,強調“實戰”效果。只掌握和理解技術,而沒有實際應用,等於沒有掌握技術。在本書的各章中,在介紹技術的同時,都會提供有示例或稍大一些的實例,同時在各章的結尾安排有綜合應用,通過幾個小型專案來綜合應用本章所講解的知識,做到理論聯繫實際。最後在本書的後面5章中提供有5個完整的專案實例,講述從前期規劃、設計流程圖,到項目最終實施的整個實現過程。全書共分24章,包括ASP.NET技術入門、C#語言基礎、C#控制語句與陣列、物件導向程式設計、ASP.NET常用伺服器控制項、ASP.NET 內置物件、資料驗證技術、母版頁技術、網站主題、ADO.NET技術進行資料庫開發、資料控制項的應用、網站導航技術、Web使用者控制項、程式調試與錯誤處理、ASP.NET Ajax、LINQ資料訪問技術、電子郵件發送技術、Web服務技術、網站安全與策略、網站會員註冊與登錄、ASP.NET製作網站留言板、網上銀行線上安全支付、明日社區網和校友錄數碼相冊網。

    點擊下載: ASP.NET 開發實戰寶典

  • ASP.NET MVC 2 Cookbook 英文版

    ASP.NET MVC 2 Cookbook 英文版

    ASP.NET MVC的,最新的Web從微軟開發平臺之一,帶來了對ASP.NET MVC的程式設計能力的發展。它簡化了應用開發和維護任務的開發。然而,ASP.NET MVC是充滿了這麼多的功能,開發人員最終以對該在他們的日常開發任務.ASP.NET發展中遇到的MVC2提供的非常具體,遇到許多問題,而解決問題的辦法尋找解決辦法在ASP.NET MVC開發平臺的應用。

    ASP.NET MVC, one of the latest web development platforms from Microsoft, brings the power of MVC programming to ASP.NET development. It simplifies the task of application development and maintenance for developers. However, ASP.NET MVC is filled with so many features that developers end up looking for solutions to the many problems that are encountered in their routine development tasks.ASP.NET MVC 2 Cookbook will provide solutions for the very specific problems that are encountered while developing applications with the ASP.NET MVC platform. It consists of many recipes containing step-by-step instructions that guide developers to effectively use the wide array of tools and features of ASP.NET MVC platform for web development

    ASP.NET MVC Cookbook is a collection of recipes that will help you to perform your routine development tasks with ease using the ASP.NET MVC platform. In this book you will be walked through the solution to several specific web application development problems. Each recipe will walk you through the creation of a web application, setting up any Visual Studio project requirements, adding in any external tools, and finally the programming steps needed to solve the problem. The focus of the book is to describe the solution from start to finish.

    The book starts off with recipes that demonstrate how to work effectively with views and controllers – two of the most important ingredients of the ASP.NET MVC framework. It then gradually moves on to cover many advanced routing techniques. Considering the importance of having a consistent structure to the site, the book contains recipes to show how to build a consistent UI and control its look with master pages. It also contains a chapter that is packed with many recipes that demonstrate how to gain control of data within a view.

    As the book progresses through some exciting recipes on performing complex tasks with forms, you will discover how easy it is to work with forms to jazz up the look of your web site. Building large applications with ease is one of the prime features of the MVC model. Therefore, this book also focuses on tools and features that make building large applications easier to manage. As data plays an important role in the MVC architecture, there are ample recipes dedicated to cover data validation, access, and storage techniques. Finally, the book demonstrates how to enhance the user experience of your visitors by controlling the data at the application, session, caching, and cookie level.

    點擊下載: ASP.NET MVC 2 Cookbook 英文版

  • ASP.NET Web Developer’s Guide

    ASP.NET Web Developer’s Guide
    ASP.NET Web Developer’s Guide.jpg
    All the essential information needed to take full advantage of Microsoft’s newest Web development platform What is ASP .NET ASP.NET is a revolutionary new programming framework that enables the rapid development of powerful web applications and services. Part of the emerging Microsoft .NET Platform, it provides the easiest and most scalable way to build, deploy and run distributed web applications that can target any browser or device. ASP.NET (formerly referred to as ASP+) is more than the next version of Active Server Pages (ASP); it is a unified Web development platform that provides the services necessary for developers to build enterprise-class Web applications. ASP.net Web Developer’s Guide will teach Web developers to quickly and easily build solutions for the Microsoft .NET platform. Programmers who are expert in asp and other languages will find this book invaluable.

    ASP.NET Web Developer’s Guide  網頁下載:http://www.itcert.org/thread-3709-1-1.html

  • 《ASP.NET MVC 2 開發實戰》電子書分享

    ASP.NET MVC 2 開發實戰

    234234235.jpg

    本書介紹
    國內第一本專門介紹ASP.NET MVC的技術書籍,融入作者多年實務開發工作之精髓,從觀念→技術講解→開發實例→開發流程→測試→部署,加以實例詳述,幫助你建置更安全、快速且容易維護的網站,肯定是工作中最實用的解決方案!

    本書內容
    主要分成三篇,以循序漸進的方式揭開ASP.NET MVC的神秘面紗,協助開發人員將現有的ASP.NET Web Form專案移轉至ASP.NET MVC架構。除了正確的觀念外,搭配Visual Studio 2010開發工具帶你實際體驗ASP.NET MVC的強大魅力。
    基礎觀念篇
            在學習ASP.NET MVC之前,應該要具備什麼樣的技術與觀念?本篇引導不同技術背景的讀者瞭解MVC最基礎的環節,並建立第一個ASP.NET MVC專案,體驗MVC的開發流程。

    技術講解篇
            針對ASP.NET MVC 2不同角度與環節進行技術解析,在熟悉不同面向的ASP.NET MVC 2開發技術之後,更能讓你善用關注點分離的優勢並專注於解決問題,進而減少程式開發的時間與降低軟體複雜度。
    開發實戰篇
            以一套完整的留言版系統詳述ASP.NET MVC 2的開發技巧與流程,以及安裝部署與單元測試的實作方法,並分享實務開發技巧,包括:多國語言支援、隱藏HTTP標頭版本編號、如何在ASP.NET MVC與ASP.NET Web Form之間傳遞資料、偵錯等。相信在融會貫通之後即可有效運用於其他更複雜的專案上。

    本書目錄
    第一篇:基礎觀念篇
    第1章:在學習ASP.NET MVC之前
    第2章:建立正確的開發觀念
    第3章:新手上路初體驗
    第二篇:技術講解篇
    第4章:Routing與ASP.NET MVC生命週期
    第5章:Model建立資料模型
    第6章:剖析Controller相關技術
    第7章:View資料呈現相關技術
    第8章:Area區域相關技術
    第三篇:開發實戰篇
    第9章:MvcGuestbook進階實戰
    第10章:ASP.NET MVC開發技巧
    第11章:安裝部署
    第12章:單元測試

    下載電子書: 《ASP.NET MVC 2 開發實戰》

    此電子書由網友上傳分享,僅限於個人學習試用,下載24小時自行刪除,請購買正版書籍!

  • 關於WebService開發的個人經驗

    去年幫客戶和某超商作欠費的即時查詢及代收的整合,剛開始試寫了幾種方法,但是超商都說我回的Message他們驗證不過吃不進去,最後是超商提供的一個C#範例程式,我拿來改成VB.Net,所以當時有一些Attribute的語法被不明就裡的拿來套用,剛好最近兩天有空就拿來研究,終於都搞通了,以下就是這兩天的研究成果

    以VS2005開發Web Service來傳遞自訂物件時,如下例
    Public Class Service1
    Inherits System.Web.Services.WebService
    <WebMethod()> _
    Public Function Operation(ByVal obj As MyObj) As MyObj
    …..
    End Function
    End Class

    Public Class MyObj
    …..
    End Class
    預設Request和Response的SOAP Message會長的像這樣:
    =======Request=======
    <?xml version=”1.0″ encoding=”utf-8″?>
    <soap:Envelope …>
    <soap:Body>
    <obj>
    ….
    </obj>
    </soap:Body>
    </soap:Envelope>

    =======Response=======
    <?xml version=”1.0″ encoding=”utf-8″?>
    <soap:Envelope …>
    <soap:Body>
    <OperationResult>
    ….
    </OperationResult>
    </soap:Body>
    </soap:Envelope>

    但超商希望的是無論在Request和Response的訊息都是在SOAP BODY內包一個<OLTP>…</OLTP>就好,長的像這樣:
    <?xml version=”1.0″ encoding=”utf-8″?>
    <soap:Envelope …>
    <soap:Body>
    <OLTP>
    ….
    </OLTP>
    </soap:Body>
    </soap:Envelope>

    要怎麼作呢?
    要修改Request時的Message容易!
    Public Class Service1
    Inherits System.Web.Services.WebService
    <WebMethod()> _
    Public Function Operation(ByVal objOLTP As MyObj) As MyObj
    …..
    End Function
    End Class

    要改Response時的Message就要在我們的自訂物件上多加一些Attribute的東西
    Imports System.Xml.Serialization
    <XmlRootAttribute(ElementName:=”OLTP”)> _
    Public Class MyObj
    …..
    End Class

    不過這樣(加上Attribute)改過之後,如果您是在VS2005直接用加入Web參考的方式,去呼叫這個Web Service會發現收不到傳回值,而且您的測試專案可能就會有一個運算式沒有產生值的錯誤訊息,去看Reference.vb(在專案的.\Web References\Web參考資料夾名稱下)會發現您呼叫的是一個Sub而不是Function,當然您可以直接修改這隻程式,不過我強烈建議絶對不要這樣作,因為那一天您不小心去更新Web參考時就毀了,VS2005會重新產生這個檔案,您所作的修改就不見了。所以我建議如果會有要自己修改Reference.vb這個檔案的人,請照這樣作!

    1. 先移去剛剛加的<XmlRootAttribute(ElementName:=”OLTP”)> _,存檔並重新建置(重建一定要作,不然後面就白作了)
    2. 先開啟VS2005命令提示字元
    3. 輸入 WSDL /l:VB http://伺服器IP/WebService名稱.asmx
    4. 在現行資料夾下會產生一個 WebService名稱.vb 的檔案
    5. 將這個.vb的檔案複製到測試專案資料夾下並加入到測試專案中
    6. 修改測試專案程式碼,將原本程式碼中的 Web參考資料夾名稱.ServiceName 改成 ServiceName,Web參考資料夾名稱.MyObj 改成 MyObj
    7. 作到這裡,看起來已經沒有錯誤訊息了,但是實際執行時,您會發現雖然是Function但傳回值卻永遠是Nothing,那是因為VS2005只會去讀SOAP BODY內的<XXXXResult>…</XXXXResult>內容當作傳回值(XXXX就是您WebMethod的Function名稱)
    8. 打開 WebService名稱.vb ,修改Function宣告式的傳回值部份,在XmlElementAttribute中加入ElementName:=”OLTP” 讓VS2005會去讀SOAP BODY中的<OLTP>…</OLTP>內容當作傳回值即可

    Public Function Operation( <System.Xml.Serialization.XmlElementAttribute( _
    [Namespace]:=”http://tempuri.org/”)> ByVal OLTP As MyObj) _
    As <System.Xml.Serialization.XmlElementAttribute([Namespace]:=”http://tempuri.org/”, ElementName:=”OLTP”)> MyObj
    Dim results() As Object = Me.Invoke(“Operation”, New Object() {OLTP})
    Return CType(results(0),MyObj)
    End Function

    引用:http://paul0407.blogspot.com/search/label/ASP.NET