ASP.NET 3.5 Social Networking


ASP.NET 3.5 Social Networking
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$20.99
save 30%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • Create a full-featured, enterprise-grade social network using ASP.NET 3.5
  • Learn key new ASP.NET topics in a practical, hands-on way: LINQ, AJAX, C# 3.0, n-tier architectures, and MVC
  • Build friends lists, messaging systems, user profiles, blogs, message boards, groups, and more
  • Rich with example code, clear explanations, interesting examples, and practical advice – a truly hands-on book for ASP.NET developers

Additional material with this book:

Appendix A Setting Up Your Development Environment

Appendix B Test-Driven Development and Continuous Integration

Appendix C SQL

Book Details

Language : English
Paperback : 580 pages [ 235mm x 191mm ]
Release Date : December 2008
ISBN : 1847194788
ISBN 13 : 9781847194787
Author(s) : Andrew Siemer
Topics and Technologies : All Books, Microsoft Development , Web Development, Microsoft, .NET


Table of Contents

Preface
Chapter 1: Social Networking
Chapter 2: An Enterprise Approach to our Community Framework
Chapter 3: User Accounts
Chapter 4: User Profiles
Chapter 5: Friends
Chapter 6: Messaging
Chapter 7: Media Galleries
Chapter 8: Blogs
Chapter 9: Message Boards
Chapter 10: Groups
Chapter 11: Comments, Tags, and Ratings
Chapter 12: Moderation
Chapter 13: Scaling Up
Index
  • Chapter 1: Social Networking
    • What makes this topic so important
      • Large communities
      • Niche communities
    • Once I have my own social network, then what?
      • Customer service
      • Content moderation
      • Growing infrastructure requirements
    • Our social network—Fisharoo
    • This book's approach
      • Problem
      • Design
      • Solution
    • Features of our social network
      • Accounts
      • Profiles
      • Friends
      • Messaging
      • Media galleries
      • Blogging
      • Message boards
      • Groups
      • Comments
      • Tags
      • Ratings
      • Framework
      • Scaling up
    • Summary
  • Chapter 2: An Enterprise Approach to our Community Framework
    • A layered architecture versus a non-layered architecture
      • Layers
    • Domain-driven Design
      • Ubiquitous language
      • Entities
      • Value objects
      • Services
      • Modules
      • Aggregates
      • Factories
      • Repositories
    • Model View Presenter pattern
      • Model
      • View
      • Presenter
      • How it works
    • Factory pattern using StructureMap
    • Repository pattern and LINQ
    • Wrappers for everything!
      • Configuration
      • Cache
      • Session
      • Redirection
      • Email
    • Error handling and logging
      • Error handling
      • Logging
    • Summary
  • Chapter 3: User Accounts
    • Problem
    • Design
      • Registration
        • Accounts
        • Password strength
        • Terms and conditions
        • CAPTCHA
        • Email confirmation and verification
      • Security
        • Permissions
        • Password encryption/decryption
      • Logging in
        • Password reminder
        • Manage account
    • Solution
      • Implementing the database
        • The Accounts table
        • The Permissions table
        • The AccountPermissions table
        • The Terms table
        • Creating the relationships
      • Implementing the data access layer
        • Setting up LINQ for the first time
        • A DataContext wrapper
        • Building repositories
        • The other repositories
      • Implementing the services/application layer
        • Extension methods
      • Implementing the business/domain layer
      • Implementing the presentation layer
        • Model view presenter
        • Registration page
        • Email verification
        • Password recovery
        • Edit account
        • Implementing security
    • Summary
  • Chapter 4: User Profiles
    • Problem
    • Design
      • Profile
        • Manage profile
      • Avatar
        • Custom avatars
        • Gravatar
      • Public profile
        • Custom homepage
      • Privacy
      • News feed
    • Solution
      • Implementing the database
        • The Profiles table
        • Level of Experience
        • The Attributes table
        • The Privacy table
        • The Alerts table
        • Creating the relationships
      • Setting up the data access layer
        • Building repositories
      • Implementing the services/application layer
        • ProfileService
        • Account service
        • Privacy service
        • Alert service
        • Profile Attribute Service
      • Implementing the presentation layer
        • Privacy
        • Manage profile
        • Avatar
        • Public profile
        • News feed
    • Summary
  • Chapter 5: Friends
    • Problem
    • Design
      • Friends
      • Finding Friends
        • Searching for a Friend
        • Inviting a Friend
        • Importing Friends from External Sources
        • Sending an Invitation
        • Adding Friend Alerts to The Filter
      • Interacting With Your Friends
        • Viewing Your Friends
        • Managing your friends
        • Following Your Friends
        • Providing Status Updates to Your Friends
    • Solution
      • Implementing the Database
        • The Friends Table
        • Friend Invitations
        • Status Updates
        • Creating the Relationships
      • Setting Up the Data Access Layer
        • Building Repositories
      • Implementing the Services/Application Layer
        • FriendService
        • AlertService
        • PrivacyService
      • Implementing the Presentation Layer
        • Searching for Friends
        • Invite Your Friends
        • Outlook CSV Importer
        • Confirm Friendship
        • Show Friends
        • Friends on Profile
        • Status Updates
    • Summary
  • Chapter 6: Messaging
    • Problem
    • Design
      • Messages
      • Recipients
    • Solution
      • Implementing the database
        • Messages
        • MessageRecipients
        • Creating the relationships
      • Setting up the data access layer
        • Building repositories
      • Implementing the services/application layer
        • MessageService
        • Email
        • AlertService
        • FriendService
      • Implementing the presentation layer
        • New message
        • Default (or Inbox)
        • Read message
    • Summary
  • Chapter 7: Media Galleries
    • Problem
    • Design
      • Files
      • Folders
      • File upload
      • File system management
      • Data management screens
    • Solution
      • Implementing the database
        • Files
        • File system folders
        • File types
        • Folders
        • Folder types
        • Account folders
        • Account files
        • Folder files
        • Creating the relationships
      • Setting up the data access layer
        • Building repositories
      • Implementing the services/application layer
        • FolderService
      • Implementing the presentation layer
        • File upload
        • Photo albums
    • Summary
  • Chapter 8: Blogs
    • Problem
    • Design
      • Blogs
    • Solution
      • Implementing the database
        • Blogs
        • Creating the relationships
      • Setting up the data access layer
        • Building repositories
      • Implementing the services/application layer
        • AlertService
      • Implementing the presentation layer
        • Latest blog posts
        • My blog posts
        • Fancy URL support
        • View post
        • Create or edit post
    • Summary
  • Chapter 9: Message Boards
    • Problem
    • Design
    • Categories
      • Forums
      • Threads and Posts
      • Friendly URLs
      • Alerts
    • Solution
      • Implementing the Database
        • Categories
        • Forums
        • Posts
        • Creating the Relationships
      • Setting Up the Data Access Layer
        • Building Repositories
      • Implementing the Services/Application layer
        • BoardService
        • AlertService
      • Implementing the Presentation Layer
        • Default.aspx
        • Redirector
        • UrlRewrite
        • ViewForum.aspx
        • ViewPost.aspx
        • Post.aspx
    • Summary
  • Chapter 10: Groups
    • Problem
    • Design
      • Groups
      • GroupMembers
      • GroupTypes
      • GroupForums
      • Schema
    • Solution
      • Implementing the database
        • Groups
        • GroupMembers
        • GroupTypes
        • GroupForums
        • Creating the relationships
      • Setting up the data access layer
        • Building repositories
        • GroupRepository
        • GroupToGroupTypeRepository
        • GroupForumRepository
        • GroupMemberRepository
        • GroupTypeRepository
        • AccountRepository
        • GetAccountsToApproveByGroupID
      • Implementing the services/application layer
        • GroupService
        • AlertService
        • Redirector
        • WebContext
      • Implementing the presentation layer
        • ManageGroup
        • Members
        • Default
        • UrlRewrite
        • ViewGroup
        • MyGroups
        • Forum enhancements
    • Summary
  • Chapter 11: Comments, Tags, and Ratings
    • Problem
      • Ratings
      • Tagging
      • Commenting
    • Design
      • Ratings
      • Tags
      • Comments
    • Solution
      • Implementing the database
        • SystemObjects
        • Ratings
        • System object rating options
        • Tags
        • System object tags
        • Comments
        • Creating the relationships
      • Setting up the data access layer
        • Building repositories
        • RatingRepository
        • SystemObjectRatingOptionRepository
        • TagRepository
        • SystemObjectTagRepository
        • CommentRepository
      • Implementing the services/application layer
        • TagService
        • Extensions
        • WebContext
        • Configuration
      • Implementing the presentation layer
        • Comments Page
        • Ratings Page
        • Tags Page
        • Installing the new user controls
        • UrlRewrite.cs
        • Tags page
    • Summary
  • Chapter 12: Moderation
    • Problem
      • Community moderation
      • Gagging users
      • Dynamic filter
        • Cross-site scripting (XSS)
    • Design
      • Moderation
      • Gags
      • Filtering
    • Solution
      • Implementing the database
        • Moderations
        • Gags
        • ContentFilters
        • Creating the relationships
      • Setting up the data access layer
        • Building repositories
      • Implementing the services/application layer
        • ContentFilterService
        • Extensions
      • Implementing the presentation layer
        • Moderation
        • Gagging
        • Filtering
    • Summary
  • Chapter 13: Scaling Up
    • Problem
    • Design
      • Database optimization
        • Flagged for delete
        • Indexing
        • Partitioning
      • Web farming
      • Caching
      • Searching
      • Email
    • Solution
      • Database optimization
        • Indexing
        • Partitioning
        • Gotchas
      • Web farming
      • Caching
        • The server
        • The client
        • Using the client
        • Starting the cache layer
        • Where do I start?
      • Searching
        • Getting Lucene.NET
        • Building indexes
        • Building the search
      • Email
        • Creating services to send email
        • The database
        • Services
        • Serializing email
        • Connecting the new DBMailQueueService
        • The queue
        • Processing the queue
    • Summary

Andrew Siemer

Andrew Siemer is currently the enterprise architect at OTX Research. He has worked as a software engineer, enterprise architect, trainer, and author since 1998 when he got out of the Army. Andrew has consulted with many companies on the topics of e-commerce, social networking, and business systems. To name a few, he has worked with eUniverse (AllYouCanInk.com), PointVantage (MyInks.com), Callaway Golf (CallawayConnect.com), Guidance Software (GuidanceSoftware.com), and Intermix Media (Grab.com, AmericanIdol.com, FoxSports.com, FlowGo.com). In addition to his daily duties he also offers various classes in .NET, C#, and other web technologies to local students in his area as well as blogging in his *free* time.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


Errata

- 2 submitted: last submission 20 Feb 2014

page 5 Technical 06 Jan 09
The link to download the code bundle given under section "Downloading the Example<br />Code for this Book" is: http://www.packtpub.com/files/code/0956_Code.zip, which is<br />not correct. The link should be: http://www.packtpub.com/files/code/4787_Code.zip.
 

Errata Type:code page No:102 and 104

In the GetPermissionsByAccountID LINQ statement, the where clause reads "where a.AccountID == 1". It should read "where a.AccountID == AccountID"

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

ASP.NET 3.5 Social Networking +    Salesforce CRM: The Definitive Admin Handbook - Second Edition =
50% Off
the second eBook
Price for both: $43.05

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Make key decisions about architecture and the tools to use
  • Build a solid 'community framework' to give your site a strong foundation; the principles explored this framework will apply to any large-scale web application
  • Create user accounts, set up a permissions system, and handle password encryption
  • Work with user profiles, and establish 'friend' relationships between different users
  • Let users customize their profile and communicate with one another
  • Understand core concepts of LINQ to SQL and work with it in a layered environment
  • Moderate the site, ensuring safety, dealing with cross-site scripting (XSS), privacy, and decency
  • Utilize the Model View Presenter pattern with ASP.NET 3.5 to enable Test Driven Development
  • Add an internal search engine using SQL Server and Lucene.NET
  • Work with appropriate design patters to create a scalable long-lasting enterprise framework 

In Detail

Social Networking is all about developing connections or ties between friends and associates. While people have always networked with one another the Internet has allowed us to network with people all over the world easily. Any interest or cause can support its own social network, where fans and followers can meet, chat, and share their views. But building a social networking site from scratch involves some complex logic, and some serious coding.

This book shows how to build a scalable, enterprise-ready social network using ASP.NET. The book uses the latest features of ASP.NET to provide a platform that is efficient, easy to maintain, and extensible. Whether you want to build your own social network, are developing a social site for a customer or employer, or just want a practical guide to developing complex ASP.NET applications then this book is ideal for you.

The book starts by planning the essential features of our social network, and then building a 'community framework' that will give our site a solid foundation and enable us to add all our social networking features. We then go on to create user accounts, profile pages, messaging systems, 'friend' relationships between members, media galleries, blogs, message boards, groups, and more. Along the way you will see LINQ, MVC, AJAX, and other features of ASP.NET 3.5 put to practical and interesting uses.

This book will show you how to create a scalable, maintainable social network that can support hundreds of thousands of users, complete with multimedia features.

Approach

Each chapter starts by showing the user experience we are going to create in the chapter. It then has a section discussing the major design decisions we face in building these features, and finally presents the 'solution' – including the overall architecture and highlighting the most important code elements.
 
The book presents a lot of real-world code, with comprehensive explanation and discussion. The full social network application is available for download from the Packt website, for you to examine, study, and modify.

Who this book is for

This book is written for ASP.NET and C# developers who want to build an enterprise-grade Social Network, either for their own business purposes or as a contract job for another company.

The book assumes you have prior experience of developing web applications using ASP.NET 3.5, C# 3.0, SQL Server 2005/2008, and Visual Studio .NET 2008; it focuses on topics that will be of interest to existing developers – not on providing step-by-step examples for each detail.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software