Posts Tagged ‘datarepeater’

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:

Gridview, Style B, 12/bxGridview, Style B, 12/bxGridview, Style B, 12/bxGRIDVIEW® enables breast biopsy procedures to be performed faster, easier, and more accurately than ever before! GridView kee... Read More >
Pro ASP.NET MVC 2 Framework, Second Edition (Expert's Voice in .NET)Pro ASP.NET MVC 2 Framework, Second Edition (Expert's Voice in .NET)

Author Steven Sanderson has seen the ASP.NET MVC Framework mature from the start, so his experience, combined with comprehensive coverage of all th... Read More >

ASP Active Server Pages Video Tutorial & eBookASP Active Server Pages Video Tutorial & eBookAnyone can create and edit professional-quality dynamic web sites using ASP. You don't have to be a professional, or a computer geek. Our video Lesso... Read More >
DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor