Questions tagged [objectdatasource]

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

618 questions
0
votes
1 answer

How to instruct ObjectDataSource to match form parameter with method parameter

When working with ObjectDataSource I have following select:
dragonfly
  • 17,407
  • 30
  • 110
  • 219
0
votes
2 answers

How to Update ASP.NET GridView Row with ObjectDataSource with Code Behind Programmatically

I am having problem with implementing editable GridView using ObjectDataSource on CodeBehind; I wonder what missing pieces I need to add in my code behind (events): ASPX Code:
zee
  • 221
  • 1
  • 3
  • 8
0
votes
1 answer

Using ASP.NET FormView for show and update on mixed data source

I have a FormView on a ASP.Net Webform along with a ObjectDataSource. Now, the data that I want to display and allow edit is as follows: Unique way to access all these properties: Organization ID Company from DB LDAP Server from/to DB, a…
DoomerDGR8
  • 4,840
  • 6
  • 43
  • 91
0
votes
1 answer

Token for paging in ObjectDataSource

I have an ObjectDataSource, which runs queries against a system that uses a token for paging. On the first call, say to get the first 10 results, I get this token back from the server, and I should use it again in subsequent calls, e.g. to get…
Paolo Tedesco
  • 55,237
  • 33
  • 144
  • 193
0
votes
1 answer

ObjectDataSource Convert issue - Exception

I have a Gridview control which I want to bind dynamically based on some controls on my page. I've gotten everything to work fine except for the following code where i'm trying to dynamically set the Select Method as well pass the parameters. I'm…
Fox
  • 891
  • 3
  • 9
  • 30
0
votes
1 answer

Using ObjectDataSource in ASP .NET 3.5 - looking for thorough code samples with validation

I'm looking for an ASP .NET 3.5 book that would cover thoroughly (with advanced code samples) how to use ObjectDataSource with variety of business scenarios. Do you know any?
dragonfly
  • 17,407
  • 30
  • 110
  • 219
0
votes
1 answer

How to reassign DataSource of ObjectDataSource after sorting?

I have a Gridview that has an ObjectDataSource bound and I am doing sorting on the columns. In the Sorting event I call the following: e.Cancel = True Me.ods.Select() Me.gv.DataBind() All is fine. Now in the ODS_Selected event, I manipulate the…
atconway
  • 20,624
  • 30
  • 159
  • 229
0
votes
3 answers

ASP.Net User Control

I'm trying to build an ASP.net user control that uses a Repeater to iterate over a number of items in an ObjectDataSource that I need to pass in to the user control. I'm not sure how to pass the object data source in though. Any one know how to do…
Russ Clark
  • 13,260
  • 16
  • 56
  • 81
0
votes
2 answers

Dropdownlist objectdatasource

I have a dropdownlist connected to a objectdatasource. How can I get the DataValueField=TypeId ? I use the onselectedindexchanged to get the selected Type, how can I do the same with TypeId?
s.e
  • 197
  • 1
  • 4
  • 16
-1
votes
2 answers

How to replace strongly typed ID column with description column in gridview with objectdatasource

i have populated gridview from SaleDAL class, assuming following is the code, Please ignore any syntax error public class Product { public int ProductID { } public string ProductName { } } public class…
sairfan
  • 970
  • 2
  • 12
  • 20
-1
votes
1 answer

Using Object DataSource

I'm trying to use an ObjectBindingSource to bind data to a gridview. The data is present in the view as a subclass as the controller, in the form of a model. var _controller = new DataController(param1, param2); you would access it in this…
Antarr Byrd
  • 24,863
  • 33
  • 100
  • 188
-1
votes
1 answer

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 the architecture of the application. I can do it 2…
rlhf
  • 1
  • 5
-1
votes
2 answers

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' } y=data.mesaj; var row =…
Mustafa Deniz
  • 1,619
  • 1
  • 10
  • 8
-1
votes
2 answers

NSArray clears itself after three times

I have an NSArray that contains a couple of items. The NSArray is loaded into a uitableview from another class. when I back out of the detail view and re-enter (for the 3rd time), the NSArray is empty and the tableview is empty as well. What is…
michaela
  • 173
  • 1
  • 2
  • 13
-2
votes
5 answers

Strange Behaviour when comparing to null

I have a gridview taking data from object data source. The object data source is taking data from a method which takes one parameter (string). The parameter is supplied from page url using querystring, and the default value is set to null. In the…
Flowerking
  • 2,551
  • 1
  • 20
  • 30
1 2 3
41
42