Solved

C# Detailsview inside Ajax Modalpopup inside Updatepanel

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
New to SOAP and need some direction 10 46
About delegates in c sharp 3 35
SQL Login 17 40
VB.NET Repostiory Pattern 7 16
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

867 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

16 Experts available now in Live!

Get 1:1 Help Now