Posts Tagged ‘datasource’

Sharing ObjectDataSource From Codebehind

A04C0035

I ran into an interesting “problem” last week that wasn’t all that hard to figure out once I broke out the debugger.  But I thought it would be useful to share the results to save others the time.

The situation was that I had an Object Data Source in a FormView that I wanted to share with both a DataGrid in the FormView and a DataRepeater outside of the FormView.  Since it was in the FormView, the DataRepeater couldn’t see it.

So it seemed reasonable to me that if I could just trap the right event in the FormView I could assign the DataSource of the GridView to the DataSource of the Repeater, rebind the Repeater and we’d be on our way.

It wasn’t quite that simple.

Read the rest of this entry »

Other Related Items:

Beginning ASP.NET 3.5: In C# and VB (Programmer to Programmer)Beginning ASP.NET 3.5: In C# and VB (Programmer to Programmer)This book is for anyone who wants to learn how to build rich and interactive web sites that run on the Microsoft platform. With the knowledge you gain... Read More >

Programming ASP.NET 3.5

image

With Programming ASP.NET 3.5, you’ll quickly learn to create state-of-the-art applications using Microsoft’s popular web development technology and Visual Studio 2008. This updated bestseller provides comprehensive and easy-to-understand information to help you use several .NET 3.5 technologies for faster development and better web application performance-including ASP.NET AJAX for interactive user interfaces, LINQ for data access, and Windows Communication Foundation (WCF) for web services.

Read the rest of this entry »

Other Related Items:

Logitech Harmony 900 Remote Control (Black)Logitech Harmony 900 Remote Control (Black)Logitech Harmony 900 controls your home-entertainment devices - even when they're out of sight (up to 100 feet away). When it's show time at your hous... Read More >
Food Rules: An Eater's ManualFood Rules: An Eater's Manual A pocket compendium of food wisdom-from the author of The Omnivore's Dilemma and In Defense of Food

Michael Pollan, our nation's most truste... Read More >
Harry Potter and the Half-Blood Prince (Widescreen Edition)Harry Potter and the Half-Blood Prince (Widescreen Edition)AS HARRY POTTER BEGINS HIS 6TH YEAR AT HOGWARTS SCHOOL OF WITCHCRAFT AND WIZARDRY, HE DISCOVERS AN OLD BOOK MARKED MYSTERIOUSLY 'THIS BOOK IS THE PROPERTY OF THE HALF-BLOOD PRINCE' AND BEGINS TO LEARN MORE ABOUT LORD VOLDEMORT'S DARK PAST.
DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor