Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 867
  • Last Modified:

Problem with Update in FormView

Hi!

I have a GridView (index data) and a FormView (for details of selected row in GridView).
Everything inside UpdatePanel.

The FormView has a ObjectDataSource that connects to SIM BLL class.
I set the UpdateMethod to:

UpdateAllComments(String simComment, String buyComment, String selComment, String simID), returns StatusEnum

This method in SIM BLL calls the Update SIM in DataSet and the Update BUY (in BUY BLL class) and Update SEL (in SEL BLL class).

When I click on Update link, I get this error:

Error: Sys.WebForms.PageRequestManagerServerErrorException: Updating is not supported by ObjectDataSource 'ObjectDataSource2' unless the UpdateMethod is specified.

But the UpdaMethod in ObjectDataSource is defined.

I don't know what's happening...

Another question that I have is how to set the Parameters? The FormView uses data from 3 tables.

Thanks in advance!
0
calypsoworld
Asked:
calypsoworld
1 Solution
 
techExtremeCommented:
Hi,
use following link http://msdn.microsoft.com/en-us/library/ms227970.aspx for details regarding formview. They have set all commands in the example whcih are select, insert, update and delete.
Hope it helped!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now