How to assign the update method with class param of ObjectDataSour

G

Guest

The type ObjectDataSource1.UpdateParameters[0].DefaultValue is string.
However, the update method of the ObjectDataSource1 is a class:

[DataObjectMethod(DataObjectMethodType.Update)]
public void UpdateEvent(EventInfo eventInfo)
{
dal.UpdateEvent(eventInfo);
}


protected void DataList1_UpdateCommand(object source,
DataListCommandEventArgs e)
{
//ObjectDataSource1.UpdateParameters[0].DefaultValue = ????
ObjectDataSource1.Update();

DataList1.EditItemIndex = -1;
DataList1.DataBind();
}
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top