[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

C# Detailsview inside Ajax Modalpopup inside Updatepanel

Posted on 2010-08-23
5
Medium Priority
?
1,307 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
3 Comments
 
LVL 29

Accepted Solution

by:
Kumaraswamy R earned 1000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

872 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