Solved

Problem with Update in FormView

Posted on 2010-08-13
1
859 Views
Last Modified: 2012-05-10
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
Comment
Question by:calypsoworld
1 Comment
 
LVL 12

Accepted Solution

by:
techExtreme earned 500 total points
ID: 33437668
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question