Solved

C# Detailsview inside Ajax Modalpopup inside Updatepanel

Posted on 2010-08-23
5
1,220 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
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…

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

23 Experts available now in Live!

Get 1:1 Help Now