Hi,
I have an AddQuestion Method which takes a BO as a parameter. Something like
AddQuestion(QuestionBO QuestionObject)
{
.......
}
Now this the add method to add a question to a table called "questions". The user will enter the question in a form view and the ODS of the formview has been configured such that the insert method is set to this Add method.
Now my problem is that, I have to alter one of the properties of this QuestionObject.
Where can I catch this object and how to edit its properties ?
Loading
sandeep ramPosted Nov 12, 2009, 12:19 AM
What you need to do is to retrieve the object from the parameters, and feed it manually, e.g.
protected void ObjectDataSource1_Updating(object sender,
ObjectDataSourceMethodEventArgs e)
{
MyObj mobj = (MyObj)e.InputParameters[0];
mobj.KeyField = someValueFromViewState;
}