ObjectDataSource control acts as a data interface for databound controls such as: GridView, Repeater, FormView and DetailsView.
Questions tagged [objectdatasource]
618 questions
5
votes
2 answers
The type "..." is ambiguous: it could come from assembly "..." or from assembly "...". Please
I'm developing a Web Application on Visual Studio 2013 and I have the next problem:
The type 'AddressMaintenance.App_Code.DAL.DataSetTableAdapters.VALUESTableAdapter' is ambiguous: it could come from assembly…

Carlos
- 293
- 1
- 5
- 16
5
votes
2 answers
ObjectDataSource cannot find type when deployed to SharePoint
I'm receiving the following error when deploying a feature containing ASP.NET pages to our development SharePoint servers:
System.InvalidOperationException: The type specified in the TypeName property of ObjectDataSource 'odsYears' could not be…

Sean
- 2,453
- 6
- 41
- 53
5
votes
1 answer
How do I Prevent FormView from clearing user's entered Values after Insert Method has fired?
I have been struggling with getting FormViews to work the way Microsoft expects me to for about a day and have figure a bunch of great stuff out.
I can catch e.Exception and e.ReturnValue in the ObjectDataSource.Inserting Event Handler and I can…

SinbadEV
- 203
- 2
- 8
5
votes
1 answer
ObjectDataSource Update method with dynamic parameters
I have this DataTable that has a varying set of columns except for a sequence number.
| Sequence | Value | Tax | Duty | Total |
Any number of columns should be accepted with unique column names.
To display that table, I need to use an…
ca7l0s9
4
votes
8 answers
Using ObjectDataSource and DataObjectTypeName, How Do You Handle Delete Methods With Just An Id Parameter?
If I have an ObjectDataSource setup like:

Laz
- 3,474
- 9
- 33
- 46
4
votes
3 answers
How can I catch a exception form ObjectDataSource.Updata()
The exception is throwed by database caused a conflicting by FOREIGN KEY.
Jack Lee
4
votes
2 answers
What is the best way to handle ObjectDataSource exceptions?
I have an ObjectDataSource in an ASPX page calling CRUD operations from a business logic class. When exceptions occur during those operations, I'd like to inform the users of the errors as well as logging them. But I want a clear separation…

Leo Nix
- 2,085
- 2
- 24
- 37
4
votes
1 answer
Problem with Object Data Source in ASP.NET (GetData method)
I want to create a report viewer in ASP.NET that presents to the users their data.
the data for all the users is located in the same table.
for now I created DBDataSet and in the TableAdapter there is this method
GetData(@idNumber,…

Ofir A.
- 3,112
- 11
- 57
- 83
4
votes
3 answers
Cancel a Gridview edit during the ObjectDataSource updated event
In my Asp.net web page, I've got a GridView control that is data bound to an ObjectDataSource. The user can edit row directly in the GridView. There are times when the update fails validation. When this happens, I would like the row that was being…

epotter
- 7,631
- 7
- 63
- 88
4
votes
2 answers
Why isn't my SelectCountMethod getting called?
I'm binding a GridView to a ObjectDataSource.
I'm expecting the m_ObjectDataSourceGrid_Selected method to fire twice, once for the Select and again for the Count, but it only fires once.
What's going on?

Homer
- 7,594
- 14
- 69
- 109
4
votes
2 answers
Object Data Source
I'm creating a gridview using an objectdatasource and it works fine when pulling all records. But when I want to use the selectCountMethod the grid shows no values.
I Step through the code and my getInvoices (gets the requested data) returns data…

Robert
- 3,074
- 3
- 24
- 32
4
votes
1 answer
ObjectDataSource Gridview Insert Fails W/ Empty Values Dictionary
I have a gridview to which I have created an Insert Template in the footer row.
I have an ObjectDataSource which is bound to a business object.
I have an OnInserting event handler which never gets fired.
The program encounters an error once I call…

YonahW
- 15,790
- 8
- 42
- 46
4
votes
1 answer
ObjectDataSource throws Exceptions
I am working on an ASP.NET page with a GridView and an ObjectDataSource.
I want to configure the ObjectDataSource against a class (decorated with DataObject()) in my business layer. A class amongst many others set up in a very similar fashion. I…

BlackMael
- 3,198
- 5
- 25
- 42
4
votes
2 answers
Use selection property instead of 'SelectMethod' on ObjectDataSource?
I'm using multiple ObjectDataSources to fill ComboBox-fields in a FormView. The FormView is sort of generic, because it's appearance is different depending on it's category.
The category is defined in the url of the webpage. I'd like to create a…

Herman Cordes
- 4,628
- 9
- 51
- 87
4
votes
4 answers
Objectdatasource and Gridview : Sorting, paging, filtering
Im using entity framework 1.0 and trying to feed out a Gridview with a objectdatasource that have access to my facade. The problem is, that it seems to be particulary difficult and haven't seen anything that realy do what i want it to do on the…

Simon Dugré
- 17,980
- 11
- 57
- 73