Solved

Problem with Update in FormView

Posted on 2010-08-13
1
852 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Where to begin studying? 5 66
Default parameter problem in C# 3 27
ASP.net VB.net Email  a webpage 3 26
COnsume rest client 6 11
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now