objectdatasource: update parameter is a object?

K

Kha Tran

When using function update of objectdatasource, I can call a function with
parameters like id, name... (properties of object). Can I pass a parameter
as an full object?
Ex: update(id, name, ade, sex...): ok
update(Class objectname): ???
 
K

Kevin Spencer

If I understand you correctly, no. Unless you're talking about using a
Parameter class in a Command.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.

When using function update of objectdatasource, I can call a function with
parameters like id, name... (properties of object). Can I pass a parameter
as an full object?
Ex: update(id, name, ade, sex...): ok
update(Class objectname): ???
 
Joined
Jul 19, 2006
Messages
1
Reaction score
0
Proposal

protected void ObjectDataSource1_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
Utilisateur user = new Utilisateur();
user.IdUtilisateur = idUtilisateur;
e.InputParameters["utilisateurSource"] = user;
}

Utilisateur is my business object (I am french speaking). I add it as a Parameter to the SelectMethod before selecting.
You can try and use the same principal with the updating event
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top