08.01.2015 Views

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 12 ■ <strong>AJAX</strong> EXTENSIONS FOR <strong>ASP</strong>.<strong>NET</strong> 293<br />

Click the Configure Data Source link to go into the Configure Data Source wizard for<br />

the SqlDataSource. To see all the steps in this wizard, take a look back at Chapter 4, where<br />

the same connection is made. Otherwise, if you already have the AdventureWorks database<br />

set up with SQL Server, enter the configuration string on the first step on the wizard.<br />

See Figure 12-11 for details. Here’s an example connection string:<br />

Data Source=.\SQLEXPRESS;Initial Catalog=AdventureWorks;Integrated Security=True<br />

Figure 12-11. Connecting to the database<br />

When you click Next, you’ll be given the option to either use a custom SQL statement<br />

or specify columns from a table or view (see Figure 12-12). Select the former (“Specify a<br />

custom SQL statement or stored procedure”).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!