Questions tagged [objectdatasource]

ObjectDataSource control acts as a data interface for databound controls such as: GridView, Repeater, FormView and DetailsView.

Filter by
Sorted by
Tagged with
0 votes
1 answer
79 views

Change data source from Pivot

I am creating a new file based on an old one and now I am trying to change the data source from a pivot chart (still linked to the old file). The new data source should be from a table on the new ...
  • 7
0 votes
0 answers
74 views

ObjectDataSource 'xxx' could not find a non-generic method 'xxx' that has no parameters

OKAY, here goes. I use this platform a lot to get answers but I haven't been able to find anything related to the issue I am experiencing. Im working on an asp.net 4.8 website written in c#. I have ...
0 votes
1 answer
42 views

listing file names using ofd on DGV can't be done because of the data source

I am a beginner in programming in general. My app has a button listing names of selected files on DGV. I added a row for file names on windows Forms Designer using DGV Tasks. The code is as follows: ...
  • 55
-1 votes
1 answer
106 views

Cascading combo box

I am trying to bind 2 combo box, being the value of the second dependent from de first. All the solutions that i saw to this problem were by the use of Sql.Data (Datatable), which i cant use, due to ...
  • 1
0 votes
1 answer
331 views

DataSource controls not available in .NET Windows Forms app using Visual Studio 2019

I am running Visual Studio Community 2019 version 16.11.3, and I am having a problem with the data source controls (both SqlDataSource and ObjectDataSource). Neither control shows up in the Data tab ...
0 votes
1 answer
89 views

Can I use a defaultvalue for an ObjectDataSource Update-Parameter?

Can I use this ASPX-code in defining my ObjectDataSource control? <UpdateParameters> <asp:Parameter Name="UID_KEY" Type="Int32" DefaultValue="<%= hidUID_KEY.V&...
  • 503
0 votes
2 answers
57 views

ObjectDataSource Not Passing DefaultValue to Table Adapter

I have encountered a really weird problem. I am swapping the data source on an ASP.Net ListView from a SqlDataSource to an ObjectDataSource. Everything is working well except two parameters are not ...
0 votes
1 answer
695 views

Why are there no data objects in data sources? (Data Source Configuration Wizard)

My application is based on Windows Forms. I am creating a report using RDLC (version 15.3.1). This report should have a table that is filled with the data I take from DataGridView. Transferring data ...
1 vote
1 answer
43 views

DataSource DisplayMember with custom string composed of DataSource properties

Is it possible to bind a ListBox to a DataSource of List<A>, while setting the DisplayMember to a custom string composed of A's properties, such as the following $"{A.b} {A.c}"? var list1 = new ...
  • 14.6k
0 votes
0 answers
88 views

ASP ObjectDataSource binding even though DataBind() not called

I've recently run into an issue with my ASP ObjectDataSource using a GridView. My code..... <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" EnablePaging="True" ...
1 vote
1 answer
205 views

adding parameters that are not string type to the objectdatasource

I was given the below piece of code to add Insert parameters that belong to my ObjectDataSource object's Insert method. There is an insert button\link in the footer of the grid which relies on the ...
1 vote
2 answers
302 views

Prevent ControlParameter AutoPostBack from firing ObjectDataSource Select Method

i've created a simple ASP Gridview with an ObjectDataSource to get the data from my database and show it in the GridView. The ObjectDataSource looks like this: <asp:ObjectDataSource ID="...
0 votes
1 answer
182 views

ObjectDataSource is selecting before Drop Down List is populate with data

I bind my DropDownList during first Page_Load: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Function.LoopChangeControlMtText(this.Controls); ...
  • 515
1 vote
2 answers
132 views

could not find http://www.objectdb.com/eclipse

In eclipse when i am going to install objectDb data Source Driver like: help-->Install New Software...-->then i am adding url: http://www.objectdb.com/eclipse. it gives the error like: "could not ...
0 votes
1 answer
244 views

ObjectDataSource Not Binding Properly To GridView

This is probably something simple, just need some fresh eyes. It's very long, but I wanted to give full context. I'm trying to show a GridView that uses an ObjectDataSource. The ODS returns a ...
0 votes
1 answer
2k views

Bind data for an Object Data source in code behind and remove SelectMethod

I need to prevent objectdatasource from auloading data and managing that in the code behind . when I remove the SelectMethod , the following problem occurs The Select operation is not supported ...
  • 5,702
0 votes
1 answer
120 views

Asp.net gridview rowupdated event e.Tow.RowType type?

I have some code in GridView1_RowDataBound event for html design of table : if (e.Row.RowType == DataControlRowType.Header) { e.Row.TableSection = TableRowSection.TableHeader; ...
  • 455
0 votes
1 answer
308 views

fill object data source with class in another project

I'm quit new in c# and linq and I need to fill an ObjectDataSource (in vb.net) with code using a class in another project (in .c#). I tried doing these things: 1. Add the reference 2. "Imports ...
  • 31
3 votes
1 answer
2k views

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 <asp:ObjectDataSource ID="odsInsert" runat="server" SelectMethod="...
5 votes
1 answer
434 views

Why does ValueMember override an empty DisplayMember

When I set a DataSource on a control and want to use .ToString() as DisplayMember, I need to set the DisplayMember last or the ValueMember will override it. MSDN on empty string as display member: ...
  • 3,968
1 vote
2 answers
792 views

Issues connecting to local .rdl report.

Now I've been looking here including a few answers in here for the same question but none really solved the problem or contained enough info to clarify a few information. Now first of all I made a ....
0 votes
1 answer
207 views

QueryStringParameters not working on ASP.Net objectDataSource

I can't seem to get the QueryStringParameters to work with an ObjectDataSource in ASP.Net webforms. Seems like I've done this a million times, but can't figure out why the following won't work at all (...
  • 1,903
0 votes
1 answer
261 views

The system cannot find the file specified " return employeeDBContext.Departments.Include("Employees").ToList();"

I am developing web application using vs 2017 ,EF v 6.0.1 with code first approach.On running the application I am getting error at employee repository class, return statement as "The system cannot ...
0 votes
1 answer
29 views

Using same classes for items and lists

Reviewing code for a .net website project, most of the classes have been created with extensive properties. These have then been used as datasources for listviews and repeaters which do not use all ...
  • 1
0 votes
1 answer
47 views

What can I do to make a multi-option, dual-choice selection dialog

The question title doesn't do the best job describing what I need. This question essentially relates to radio buttons in a list. There will be a variable number of choices. Each choice will have two ...
0 votes
1 answer
367 views

Conversion from type 'DBNull' to type 'Integer' is not valid. using asp.net and object data source

im try to edit row in gridview called(gvTeam) the gridview using objectdatasource(odsGvTeam) in Admin_team.aspx <asp:GridView ID="gvTeam" runat="server" AutoGenerateColumns="False" ...
1 vote
1 answer
125 views

kendo grid add non displayed field to store original value from valid field in datasource

I have a datasource that has a column value i want to store in another "new" field that the datasource doesn't know about or care about. I tried using the "from:" notation when adding the field, but i ...
0 votes
2 answers
437 views

C# Exception handling not working on ObjectDataSource

On my C# .NET web application I have a GridView bound to an ObjectDataSource. This ObjectDataSource uses as its select, update, insert, delete commands methods from a .cs file in my App_Code folder. ...
  • 43
0 votes
0 answers
48 views

DetailsView ObjectDataSource OnUpdate Cannot Convert from String to DateTime

DetailsView on edit mode can't convert readonly DateTime field to String I solved the problem, but it didn't seem to me the most elegant way of solving it. Why does it happen? DetailsView on edit ...
0 votes
0 answers
275 views

how to pass an object as parameter in objectdatasource using textbox

I have a Company class: public class Company { public int CompanyId { get; set; } public string Name { get; set; } public string Description { get; set; } //this retrieves all of the ...
  • 450
0 votes
1 answer
129 views

SQL Query for Optional Custom Paging, C# ObjectDataSource

The SQL Custom Paging Query for ObjectDataSource, allows each request to only provide data relevant to the particular page, increasing loading speed. The question is how to make paging optional? ...
  • 21
0 votes
1 answer
37 views

Include Search Parameters Custom Paging SQL Query

answered Having some trouble modifying an SQL query that is commonly used for ObjectDataSource custom paging. Below is a custom ObjectDataSource paging SQL call, that will return only the results ...
  • 21
0 votes
1 answer
2k views

Binding a collection inside a data source object to a DataGridView in C#

I do have two sql server database tables, which are Machine and Fault. Machine table have all the information regarding a specific machine here on my site. Fault table stores all mechanical faults ...
  • 183
0 votes
0 answers
1k views

JNDI data source configuration issue in spring boot

My java configuration file looks like below - @Bean public JdbcTemplate jdbcTemplate() { JdbcTemplate template = new JdbcTemplate(dataSource()); return template; } @Bean public DataSource ...
0 votes
1 answer
42 views

define two Parameter for ObjectDataSource one from gridview and one from login user

I have a asp GridView and a DetailView in my page.I am using asp ObjectDataSource to bind data to my DetailsView. I am calling a method from data layer to get the data.method have a parameter (...
  • 1
0 votes
1 answer
557 views

C# datagridview adding extra items not showing up

I have a DataGridView and a button. On pressing this button it should add in a new row into the DataGridView. In order to do this I have the following code: List<NavigationInfo> ...
  • 2,595
0 votes
1 answer
347 views

Bind data ObjectDataSource to Label

How do you bind data from an ObjectDataSource to a label form an Formview (Detailsview)? This is my code from the DetailsView () Normally it shows the ID of Afstand (Distance) but it has to show ...
0 votes
0 answers
126 views

Webapi controller and Objectdatasource

I want to move step by step from webforms to a client application based on z angularjs or devextreme. At the moment I am using an objectdatasource and load data over a kind of controller that is ...
  • 1,300
2 votes
1 answer
426 views

Why does ObjectDataSource require an optional parameter of a function?

This ObjectDataSource will return an error when connecting to the following function: <asp:ObjectDataSource ID="odsActiveProductTypes" runat="server" SelectMethod="GetProductTypes" TypeName="...
  • 17k
0 votes
1 answer
32 views

How to manually insert a default ListItem when DropDownList is bound to a datasource control

When editing a Employee, the Type is a DDL that display the value from the database. The problem is that some employee don't have type. I'm getting exception for that. So, I believe that I need just ...
  • 19.9k
1 vote
1 answer
200 views

How to get a list of specific records using ASP.NET ObjectDataSource with Repository Pattern?

I am a new ASP.NET Webforms developer. I am learning now how to use ObjectDataSource with the Entity Framework and Repository Pattern. What I am struggling with right now is to retrieve a specific ...
-3 votes
1 answer
900 views

Can SSRS Reports be used without a SQL Server Database? [closed]

I have an application that gets all its data from an old AS400 application. I get a model out (what in MVC I'd call a ViewModel) that has all the data for the reports, but the current legacy code is ...
0 votes
1 answer
1k views

Populate a dropdownlist with objectdatasource

I'm trying to populate a dropdownlist with an objectdatasource programatically. It's a user control, so in my ascx I have this: <asp:ObjectDataSource ID="odsFicheros" runat="server" ...
-1 votes
2 answers
518 views

MySQL query WHERE with object as result

I'm searching data.mesaj in mySQL query but connection is running cause query isn't running, what will do now also data.mesaj have, but I don't want this: data = { mesaj: '\nHello', uid: 'mustafa' } ...
0 votes
3 answers
1k views

How to disply message upon the click event of ASP.NET LinkButton residing inside ASP.NET GridView?

I am new ASP.NET Web Forms developer and I am trying to develop a simple application using ObjectDataSource with Repository Pattern. I am struggling now with two issues related to the ASP.NET ...
2 votes
1 answer
758 views

How to retrieve the data using ASP.NET ObjectDataSource based on the QueryString?

I am new ASP.NET Web Forms developer and I am trying to develop n-layered application using ObjectDataSource with the Repository Pattern. So far, I am doing well but I am struggling with retrieving ...
0 votes
3 answers
1k views

How can I use an android.net uri to be used as a source for the MediaPlayer class in Xamarin Android?

I have tried to use the GetItemAtId method. However when I set the data source of the music that should be played it returns an error. void MediaListView_ItemClick (object sender, AdapterView....
0 votes
1 answer
157 views

Any Gridview event that fires when I click on a header of a specific column?

I'm using asp:ObjectDataSource with a gridview , and I'm trying to get the sortExpression of a gridview , before executing the SelectMethod of the ObjectDataSource . <asp:ObjectDataSource ID="...
  • 20.9k
2 votes
0 answers
262 views

filter in objectdatasource in asp.net

Hi i am using a gridview on my asp.net form . My problem is i want to given filter option on the gridview. So how can i give the filter option as example user can filter data on Orderdate column of ...
  • 3,332
1 vote
1 answer
129 views

Why objectdatasource is executing obsolete method without any error?

ObjectDataSource is not recognizing obsolete method and executing it as normal method. ObjectDataSource is not identifying the obsolete attribute where as the code behind file recognizes the ...

1
2 3 4 5
13