ObjectDataSource control acts as a data interface for databound controls such as: GridView, Repeater, FormView and DetailsView.
Questions tagged [objectdatasource]
618 questions
3
votes
1 answer
DataBinding: 'System.String' does not contain a property with the name 'Text'
This error happens when I use the SelectedItem.Text of a dropdownlist as a value to pass for ObjectDataSource.
Here is the markup

Elham Kohestani
- 3,013
- 3
- 20
- 29
3
votes
2 answers
ASP.NET 2.0: Specifying an instance of an object for an ObjectDataSource
I'm using an ObjectDataSource to bind data to a GridView; it works fine except that it always creates a new object to use as a data source. I can do all the setup just fine but I cannot use an instance of an existing object to specify as the "data…

Austin Salonen
- 49,173
- 15
- 109
- 139
3
votes
3 answers
Object data source select method returning nothing in code call
I have an ObjectDataSource with the proper SelectMethod and SelectParameters configured. The data source is bound to a grid view which successfully displays the data on page load.
What I need is the ability to rerun the Select method defined by the…

Omar
- 39,496
- 45
- 145
- 213
3
votes
1 answer
ASP.NET - FormView - Datasource update only some of the fields
I have a ASP.NET page that contains a formview and ObjectDataSource. On the page I only have 4 fields that are bound to fields in my datasource. My datasource contains 10 fields. When I call an update it is setting the 6 fields I am not binding…

Dan
- 33
- 2
3
votes
2 answers
nhibernate 2.0 Efficient Data Paging DataList Control and ObjectDataSource
How would I do what Scott has done in one call using nHibernate 2 ObjectDataSource
http://weblogs.asp.net/scottgu/archive/2006/01/07/434787.aspx
below is my Data access method
public IList GetListOfUser(int rows, int pageIndex) {
…

kemical
- 31
- 2
3
votes
2 answers
Opening gridview in new window, passing parameters between pages
I have the following scenario I would like to implement.
I have a number of drop downs that the client can select a range of criteria. From this, they will press a button, the query will be generated and low and behold, a gridview will be produced…

Ricardo Deano
- 2,769
- 8
- 47
- 70
3
votes
5 answers
C# variable value only update once when called in Javascript
I've look an found only a similar post and didn't really answer my question or maybe they did but I didn't understand. The post I read was this one: Why does this javascript variable I'm creating via C# only get updated once?
I'm using a paged…

José Corretjer-Gómez
- 341
- 2
- 13
3
votes
1 answer
3
votes
2 answers
Xpages bean vs object data
What's the difference? When should I prefer one over another?
And some minor questions related to this:
if I have object data, when is saveObject called?
it looks like garbage collector recycles all my domino handles. I tried to downcast then clone…

Ermo
- 91
- 1
- 7
3
votes
1 answer
ObjectDataSource does not call SelectCount Method
can you please help me to find the problem:
I want to implement simple DataGrid and ObjectDataSource bundle with paging
my .aspx file
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default"…

Cherven
- 1,101
- 3
- 17
- 26
3
votes
1 answer
Optimize Pagination & Sorting with ObjectDataSource having EnableCaching = true
I'm using an ODS(ObjectDataSource) backed-up with a Linq-To-SQL class to populate Gridview on my page.
Considering the performance - I've disabled the Viewstate of the Gridview and enabled caching in the ODS.
Apart from this, I've also optimized the…

Hemant Tank
- 1,724
- 4
- 28
- 56
3
votes
1 answer
ObjectDataSource not calling Insert method when it has extra parameters
I'm new to ASP.NET, and I'm trying to implement a custom ObjectDataSource Insert method.
The default business method works fine (with a single object parameter). However when I add an extra parameter, the business method does not get called.
Here is…

Justicle
- 14,761
- 17
- 70
- 94
3
votes
0 answers
ObjectDataSource SelectMethod and SelectCountMethod
When using an ObjectDataSource control, either instance methods or static methods can be used for the SelectMethodand SelectCountMethod. According to the MSDN documentation, if an instance method is used, a new instance will be created and disposed…

JW Lim
- 1,794
- 3
- 21
- 41
3
votes
2 answers
ASP.NET - ObjectDataSource: using multi-select ListBox as ControlParameter
I have a form that contains a GridView control which is databound to an ObjectDataSource Control. There are several TextBox controls that are already being used as ControlParameters for the ObjectDataSource. I also have a custom data object that the…

M3NTA7
- 33
- 1
- 4
3
votes
0 answers
Binding ViewModel Property to ASP TextBox and Button
This is my View
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InsertUser.aspx.cs" Inherits="WebApplication1.InsertUser" %>
…

hexillium
- 31
- 2