Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying ASP.NET 3.5 Application Architecture and Design
  • Table Of Contents Toc
  • Feedback & Rating feedback
ASP.NET 3.5 Application Architecture and Design

ASP.NET 3.5 Application Architecture and Design

By : Vivek Thakur
4.4 (8)
close
close
ASP.NET 3.5 Application Architecture and Design

ASP.NET 3.5 Application Architecture and Design

4.4 (8)
By: Vivek Thakur

Overview of this book

Table of Contents (14 chapters)
close
close
ASP.NET 3.5
Credits
About the Author
About the Reviewers
Preface

Object Data Source Controls


We looked at the data source controls in the last chapter and saw how they replaced the data access code, but tightly coupled the GUI to the data methods. To overcome this problem, Microsoft introduced object data source controls, so that we can bind directly to business objects, making it possible to use them in a 3-tier architecture.

Let's see how using object data source controls will shape our application:

  1. 1. Create a new web project using VS.

  2. 2. Add a new form named datasource-customer.aspx.

  3. 3. Add an object data source control, as shown here (drag and drop the object data source control from the Data tab under ToolBox in VS):

  4. 4. Now, we need to configure this object data source control. We first need to set the Business object , where we select our customer class:

  5. 5. Then, we need to set the SELECT, UPDATE, and INSERT methods. For our sample, we will just set the SELECT method:

  6. 6. Then, we select Finish. We then add a GridView control on the same page and...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
ASP.NET 3.5 Application Architecture and Design
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon