Microsoft Cloud Authors: Nick Basinger, Kevin Benedict, Pat Romanski, Liz McMillan, Lori MacVittie

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


       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.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")


       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
In his general session at 19th Cloud Expo, Manish Dixit, VP of Product and Engineering at Dice, discussed how Dice leverages data insights and tools to help both tech professionals and recruiters better understand how skills relate to each other and which skills are in high demand using interactive visualizations and salary indicator tools to maximize earning potential. Manish Dixit is VP of Product and Engineering at Dice. As the leader of the Product, Engineering and Data Sciences team at D...
Cloud-enabled transformation has evolved from cost saving measure to business innovation strategy -- one that combines the cloud with cognitive capabilities to drive market disruption. Learn how you can achieve the insight and agility you need to gain a competitive advantage. Industry-acclaimed CTO and cloud expert, Shankar Kalyana presents. Only the most exceptional IBMers are appointed with the rare distinction of IBM Fellow, the highest technical honor in the company. Shankar has also receive...
Nicolas Fierro is CEO of MIMIR Blockchain Solutions. He is a programmer, technologist, and operations dev who has worked with Ethereum and blockchain since 2014. His knowledge in blockchain dates to when he performed dev ops services to the Ethereum Foundation as one the privileged few developers to work with the original core team in Switzerland.
Dynatrace is an application performance management software company with products for the information technology departments and digital business owners of medium and large businesses. Building the Future of Monitoring with Artificial Intelligence. Today we can collect lots and lots of performance data. We build beautiful dashboards and even have fancy query languages to access and transform the data. Still performance data is a secret language only a couple of people understand. The more busine...
Bill Schmarzo, author of "Big Data: Understanding How Data Powers Big Business" and "Big Data MBA: Driving Business Strategies with Data Science," is responsible for setting the strategy and defining the Big Data service offerings and capabilities for EMC Global Services Big Data Practice. As the CTO for the Big Data Practice, he is responsible for working with organizations to help them identify where and how to start their big data journeys. He's written several white papers, is an avid blogge...
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...
Andrew Keys is Co-Founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life settlement products to hedge funds and investment banks. After, he co-founded a revenue cycle management company where he learned about Bitcoin and eventually Ethereal. Andrew's role at ConsenSys Enterprise is a mul...
Whenever a new technology hits the high points of hype, everyone starts talking about it like it will solve all their business problems. Blockchain is one of those technologies. According to Gartner's latest report on the hype cycle of emerging technologies, blockchain has just passed the peak of their hype cycle curve. If you read the news articles about it, one would think it has taken over the technology world. No disruptive technology is without its challenges and potential impediments t...
If a machine can invent, does this mean the end of the patent system as we know it? The patent system, both in the US and Europe, allows companies to protect their inventions and helps foster innovation. However, Artificial Intelligence (AI) could be set to disrupt the patent system as we know it. This talk will examine how AI may change the patent landscape in the years to come. Furthermore, ways in which companies can best protect their AI related inventions will be examined from both a US and...
Bill Schmarzo, Tech Chair of "Big Data | Analytics" of upcoming CloudEXPO | DXWorldEXPO New York (November 12-13, 2018, New York City) today announced the outline and schedule of the track. "The track has been designed in experience/degree order," said Schmarzo. "So, that folks who attend the entire track can leave the conference with some of the skills necessary to get their work done when they get back to their offices. It actually ties back to some work that I'm doing at the University of San...