This is a migrated thread and some comments may be shown as answers.

pass update parameter as object

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 30 Jun 2009, 10:31 PM
Is it possible to pass an update parameter as an object.  I am trying to pass it like this:

 <UpdateParameters> 
                <asp:Parameter Name="lineDetail" Type="Object" /> 
                <asp:Parameter Name="lynxDocId" Type="Int32" /> 
            </UpdateParameters> 

When I try to insert an item or update and item, the application looks for ALL form field values as parameters instead of just the two listed above.

I get this error: 

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'SaveLineDetail' that has parameters:

The parameters it askes for is ALL fields.

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 03 Jul 2009, 11:02 AM
Hello Chris,

Here are a few ASP.NET MSDN articles to get you started with:

Using Parameters with the ObjectDataSource

Using Parameters with the Data Source Controls

ObjectDataSource.DataObjectTypeName property

All the best,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Chris
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or