Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Object datasource bind problem

Reply
Thread Tools

Object datasource bind problem

 
 
Kevin
Guest
Posts: n/a
 
      08-26-2006
Hi my name is Kevin

can someone help me with the objectdatasource, when binding bussines objects
to it ?
i can normally bind them to a grid and detail grid but the problem remains
that when the bussiness object user that i bind in the detailgrid
holds child obbjects like and adress object, so when i update the main
object my child object location isnt passed through my insert method

i have a usercollection boud to a datadgrid, when i click it i go get the
details from it by selecting a user by id and show them in a detailsgrid
i have an itemtemplate boud o name and one bound to the
location.locationnaam, when i clinck insert user i show insert itemtemplate

i can enter a name for the user and i added a single datasource to show a
list of location objects in a dropdownlist

now when i click insert my user object is filled in, i see the name i
entered BUT,... my location object in my user object is empty

and i selected one from the dropdownlist, how can i pas the object i
selected from a different datasource to the object i am inserting in the
main object data source

method on my bl layer

public sub insertUser(User as object)

class User

mname as string
mlocation as location

Please i really need some help on this





 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind Repeater's DataRow to GridView's DataSource wardemon ASP .Net 0 11-30-2006 06:20 PM
Bind a Label to an object Datasource control =?Utf-8?B?bWltbw==?= ASP .Net 0 01-03-2006 07:37 PM
Can I convet a query from an API into a Datasource to bind to? Paul D. Fox ASP .Net Datagrid Control 2 09-13-2005 08:22 PM
ASP.NET 2.0 How-To: Bind datasource parameter to UserID? Luke Dalessandro ASP .Net 2 09-28-2004 06:49 PM
Easiest way to bind a grid datasource to a datatable =?Utf-8?B?S2VubmV0aA==?= ASP .Net 2 01-18-2004 12:16 PM



Advertisments