Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem with Update in FormView

Posted on 2010-08-13
1
Medium Priority
?
865 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

by:
techExtreme earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

721 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