Posts Tagged ‘objectdatasource’

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:

Building Secure Microsoft ASP.NET Applications (Pro-Developer)Building Secure Microsoft ASP.NET Applications (Pro-Developer)This guide presents a practical, scenario-driven approach to designing and building security-enhanced ASP.NET applications for Microsoft® Windows® 2000 and version 1.1 of the Microsoft .NET Framework.
Panasonic Cf-19kdrax6b Tb 19 Su9300 1.2g 2gb 160gb 10.4-xga Wl Bt XptTOUGHBOOK-19 - INTEL - CORE 2 DUO - SU9300 - 1.2 GHZ - DDR2 SDRAM - 2 GB - 160 G
Bdg Bdgasp.net Publishing Mastering Asp.net [windows/macintosh]Bdg Bdgasp.net Publishing Mastering Asp.net [windows/macintosh]Mastering asp.Net gives new programmers the ability to use this incredible new tool as if they were an old pro! master the flow and management of your data with this powerful learning tool!

Unique SQL Logins and SqlMembership Provider

There are cases where it is advantageous to have a separate sql login for each user login who will be editing your database.  If you are using Windows authentication, this is not a problem because you can pass the windows authentication tokens on through to the db without having to do a whole lot of work.

But, what about times where setting up a separate windows user for each person who will be accessing the system is more work than it’s worth, or as is the case in shared hosting plans, just isn’t practical?

Read the rest of this entry »

Other Related Items:

Country-by-Country Profiles, Volume 2, Intellectual Property in the Global Marketplace, 2nd EditionCountry-by-Country Profiles, Volume 2, Intellectual Property in the Global Marketplace, 2nd EditionWith contributions from prestigious lawyers, economists, accountants, and consultants from around the world, Intellectual Property in the Internationa... Read More >
Understanding Complex Datasets: Data Mining with Matrix Decompositions (Chapman & Hall/CRC Data Mining and Knowledge Discovery Series)Understanding Complex Datasets: Data Mining with Matrix Decompositions (Chapman & Hall/CRC Data Mining and Knowledge Discovery Series)Making obscure knowledge about matrix decompositions widely available, Understanding Complex Datasets: Data Mining with Matrix Decompositions discusse... Read More >

Swapping Out the DAL

One of the comments that showed up on the blog post about using 3-tiered with DataSets and the ObjectDataSource was, “How do we set this up so that we can swap out the DAL?”  The simple answer to this is, “roll your own Table Adapter.”

Read the rest of this entry »

Other Related Items:

Managing and Mining Graph Data (Advances in Database Systems)Managing and Mining Graph Data (Advances in Database Systems)

Managing and Mining Graph Data is a comprehensive survey book in graph data analytics. It contains extensive surveys on important graph topics such... Read More >

Eastland Women's C-Sharp BootEastland Women's C-Sharp BootA causal, outdoor ankle boot with shoe-like comfort Durable leather upper Color-fast breathable lining keeps feet cool and dry Removable insole wit... Read More >
Understanding Complex Datasets: Data Mining with Matrix Decompositions (Chapman & Hall/CRC Data Mining and Knowledge Discovery Series)Understanding Complex Datasets: Data Mining with Matrix Decompositions (Chapman & Hall/CRC Data Mining and Knowledge Discovery Series)Making obscure knowledge about matrix decompositions widely available, Understanding Complex Datasets: Data Mining with Matrix Decompositions discusse... Read More >

DataSets, StoredProcedures and 3-Tier ASP.NET

Last Friday I showed how to use DataSet, the ObjectDataSource and select statements.  Today, I’ll start with the project we ended up with last week and convert it to use stored procedures instead and I won’t write any code.  That is, only the DataSet is going to change.  The rest of my code will stay exactly the same as it was when we started.

Read the rest of this entry »

Other Related Items:

Professional ADO.NET 3.5 with LINQ and the Entity Framework (Wrox Programmer to Programmer)Professional ADO.NET 3.5 with LINQ and the Entity Framework (Wrox Programmer to Programmer)

Language Integrated Query (LINQ), as well as the C# 3.0 and VB 9.0 language extensions to support it, is the most import single new feature... Read More >

HP MSA500 G2 High Availability Kit is built upon reliable and high-performance SCSI technology ( 360229-B21 )HP MSA500 G2 High Availability Kit is built upon reliable and high-performance SCSI technology ( 360229-B21 )This HP MSA500 G2 High Availability Kit includes MSA500 G2 controller, MSA500 G2 4-port IO Module, Smart Array Multipath Software and 2 SA-642 Adapters.
3 Tier Desk Tray, Steel Mesh, 10 3/4"x14 1/4"x11", BK (SPR90206) Category: Desk Trays3 Tier Desk Tray, Steel Mesh, 10 3/4"x14 1/4"x11", BK (SPR90206) Category: Desk TraysItem #: SPR90206. Letter tray is a unique steel mesh design compliments any desk or workstation. Quality construction with smooth edges and excellent ... Read More >

DataSets, ObjectDataSource and 3-Tier ASP.NET

As I’ve mentioned in other post, while I think LINQ has it’s uses, I still favor the use of the ObjectDataSource control in conjunction with DataSets and a 3-tiered architecture.  Since any future demos I do will probably involve this architecture, I thought it would be useful to do a short demo that demonstrates how to create a 3-Tiered architecture in ASP.NET.

Read the rest of this entry »

Other Related Items:

Managing and Mining Graph Data (Advances in Database Systems)Managing and Mining Graph Data (Advances in Database Systems)

Managing and Mining Graph Data is a comprehensive survey book in graph data analytics. It contains extensive surveys on important graph topics such... Read More >

Chinese ArchitectureChinese architecture is one of the most varied architectures in the world. Stretching all the way back to 5000 years ago, it has evolved over the year... Read More >
DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor