Solved

C# Detailsview inside Ajax Modalpopup inside Updatepanel

Posted on 2010-08-23
5
1,247 Views
Last Modified: 2013-12-17
Description: I have a detailsview inside a modalpopup (from ajax toolkit). Next to the detailsview and modalpopup is a repeater that generates linkbuttons which fire the modalpop+detailsview to show.
This together sits in an asp:updatepanel.

(it's exactly the same as: http://www.dotnetcurry.com/ShowArticle.aspx?ID=212 )
Only i have the edit / cancel / updates buttons added to the detailsview.

Problem: I display the detailsview with an "edit or update+cancel" button like you would normally do. If you start and click the Edit Button (after of course activating the modal popup by clicking a linkbutton) i keep getting this error:

Die DetailsView details löste das ModeChanging-Ereignis  aus, das nicht behandelt wurde. 
Beschreibung: Unbehandelte Ausnahme beim Ausführen der aktuellen Webanforderung. Überprüfen Sie die Stapelüberwachung, um weitere Informationen über diesen Fehler anzuzeigen und festzustellen, wo der Fehler im Code verursacht wurde. 

Ausnahmedetails: System.Web.HttpException: Die DetailsView details löste das ModeChanging-Ereignis  aus, das nicht behandelt wurde.

Open in new window


which basically says i didn't handle the ModeChanging Event. If i click the update button i get the same error but then for the ItemUpdating Event.

the important thing is everything needs to happen in the updatepanel since we don't want the pagerefresh.

How do i need to handle these events and why do you need to handle them?
Thx

Elco

0
Comment
Question by:livingtech
  • 2
5 Comments
 
LVL 29

Accepted Solution

by:
Kumaraswamy R earned 500 total points
ID: 33593576
0
 
LVL 29

Expert Comment

by:Kumaraswamy R
ID: 33593597
0
 

Author Closing Comment

by:livingtech
ID: 33615502
I guess i can make it with Matt Berseth's example. But i was more wondering why i got the errors.

Anyhow thx.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 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