Welcome!

Microsoft Cloud Authors: Kevin Benedict, Pat Romanski, Liz McMillan, Lori MacVittie, Elizabeth White

Related Topics: Microsoft Cloud

Microsoft Cloud: Article

Build Your Own ASP.NET 2.0 Web Site Using C# & VB.NET

The ultimate ASP.NET beginner's guide

This book contains 14 chapters and an appendix. Its subtitle is "the ultimate ASP.NET beginner's guide." As its two titles imply, this book covers the basics on a lot of ASP.NET topics. The chapter titles convey this: ASP.Net basics, VB and C# programming basics, constructing ASP.NET Web pages, database design and development, etc.

The authors state that the book is designed for beginner, intermediate, and advanced users. I am not sure about how effective the book will be for the intermediate and advanced users because the book barely skims the surface regarding object-oriented design and design patterns. It is, however, really good for beginners trying to get a feel for what Web programming is all about. The book takes your hand and walks you through all the nuts and bolts of getting a Web site up and running installing .NET to configuring IIS (Internet Information Services).

Microsoft has made it very easy to begin to learn ASP.NET and database programming by providing free tools that you can download. This book makes use of several of these tools: SQL Server 2005 express edition, SQL Server Management Studio, and Visual Web Developer 2005. All the examples provided are in C# and VB.Net.
The book creates a fictional Web site called dorknozzle ( the authors' name not mine ) and proceeds throughout the book to use this Web site to build examples that demonstrate the concepts that they are trying to convey. I like this approach because at the end of the book you have a functioning Web site that you can use as an example for future projects.

In conjunction with their discussion of ADO.NET, they cover datalists, grid views, and detail views as well as the new SQL data source object. They also have a nice discussion on the literal text Web control that most books skip. I also liked the chapter on sending emails in ASP.NET 2.0. The authors give a nice explanation on how to set up your mail server to send the email. I am running Windows XP and I created a demo program based on the example in the book that sends a dummy email when you click on a button. I could not get my local mail server to send the email, but, using a suggestion from a colleague, I used my Yahoo mail server instead and it worked just fine. I am attaching my code below; please substitute your own information wherever appropriate in the code.

This book is a fine starting point for a beginner wanting to get his/her feet wet. It will give you a good foundation to build upon but eventually you are going to want to expand your skills in areas such as object-oriented design and design patterns.

ASP.NET email demonstration code:
---------------------------------------
Imports System.Net.Mail

Partial Class EmailDemo
   Inherits System.Web.UI.Page

Protected Sub btnSendEmail_Click(ByVal sender As Object, ByVal e As System.EventArgs) _
   Handles btnSendEmail.Click

     Dim mySmtp As New smtpclient

     Dim myMessage As New MailMessage

     Try

       Dim fromAddress As New MailAddress("[email protected]", "from test email demo")

       Dim toAddress As New MailAddress("[email protected]", "to test email demo")

       myMessage.From = fromAddress
       myMessage.To.Add(toAddress)
       myMessage.Subject = "Testinfo Email Demo "
       myMessage.Body = "this is a sample email"
       ' mySmtp.Host = "localhost" ' this did not work for me5t
       mySmtp.Host = "smtp.att.yahoo.com"
       mySmtp.Credentials = New System.Net.NetworkCredential("your_loginID", "your_password")

       mySmtp.Send(myMessage)

       Me.lblstatus.Text = "message sent"

     Catch ex As Exception

       Me.lblstatus.Text = "message NOT sent"

     End Try

   End Sub

End Class

By Cristian Darie, Zak Ruvalcaba
Format: Revised Edition
Publication Date: October 2006
ISN: 0975240285
List Price: $44.95
Development Tool: Visual Studio.NET & SQL Server Management Studio (Express or Higher Editions )
Level: Beginner
Language: T-SQL , VisualBasic.NET, C#

More Stories By Steven Mandel

Steven Mandel has worked in the IT industry for over 15 years designing databases using Microsoft Access and SQL Server. He has developed Web and Windows applications using VB.NET and has written numerous articles and reviews about ASP.NET and VB.NET.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


IoT & Smart Cities Stories
DXWordEXPO New York 2018, colocated with CloudEXPO New York 2018 will be held November 11-13, 2018, in New York City and will bring together Cloud Computing, FinTech and Blockchain, Digital Transformation, Big Data, Internet of Things, DevOps, AI, Machine Learning and WebRTC to one location.
René Bostic is the Technical VP of the IBM Cloud Unit in North America. Enjoying her career with IBM during the modern millennial technological era, she is an expert in cloud computing, DevOps and emerging cloud technologies such as Blockchain. Her strengths and core competencies include a proven record of accomplishments in consensus building at all levels to assess, plan, and implement enterprise and cloud computing solutions. René is a member of the Society of Women Engineers (SWE) and a m...
In an era of historic innovation fueled by unprecedented access to data and technology, the low cost and risk of entering new markets has leveled the playing field for business. Today, any ambitious innovator can easily introduce a new application or product that can reinvent business models and transform the client experience. In their Day 2 Keynote at 19th Cloud Expo, Mercer Rowe, IBM Vice President of Strategic Alliances, and Raejeanne Skillern, Intel Vice President of Data Center Group and G...
DXWorldEXPO LLC announced today that All in Mobile, a mobile app development company from Poland, will exhibit at the 22nd International CloudEXPO | DXWorldEXPO. All In Mobile is a mobile app development company from Poland. Since 2014, they maintain passion for developing mobile applications for enterprises and startups worldwide.
Founded in 2000, Chetu Inc. is a global provider of customized software development solutions and IT staff augmentation services for software technology providers. By providing clients with unparalleled niche technology expertise and industry experience, Chetu has become the premiere long-term, back-end software development partner for start-ups, SMBs, and Fortune 500 companies. Chetu is headquartered in Plantation, Florida, with thirteen offices throughout the U.S. and abroad.
DXWorldEXPO | CloudEXPO are the world's most influential, independent events where Cloud Computing was coined and where technology buyers and vendors meet to experience and discuss the big picture of Digital Transformation and all of the strategies, tactics, and tools they need to realize their goals. Sponsors of DXWorldEXPO | CloudEXPO benefit from unmatched branding, profile building and lead generation opportunities.
The standardization of container runtimes and images has sparked the creation of an almost overwhelming number of new open source projects that build on and otherwise work with these specifications. Of course, there's Kubernetes, which orchestrates and manages collections of containers. It was one of the first and best-known examples of projects that make containers truly useful for production use. However, more recently, the container ecosystem has truly exploded. A service mesh like Istio addr...
CloudEXPO New York 2018, colocated with DXWorldEXPO New York 2018 will be held November 11-13, 2018, in New York City and will bring together Cloud Computing, FinTech and Blockchain, Digital Transformation, Big Data, Internet of Things, DevOps, AI, Machine Learning and WebRTC to one location.
@DevOpsSummit at Cloud Expo, taking place November 12-13 in New York City, NY, is co-located with 22nd international CloudEXPO | first international DXWorldEXPO and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time t...
SYS-CON Events announced today that DatacenterDynamics has been named “Media Sponsor” of SYS-CON's 18th International Cloud Expo, which will take place on June 7–9, 2016, at the Javits Center in New York City, NY. DatacenterDynamics is a brand of DCD Group, a global B2B media and publishing company that develops products to help senior professionals in the world's most ICT dependent organizations make risk-based infrastructure and capacity decisions.