Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

C# Detailsview inside Ajax Modalpopup inside Updatepanel

Posted on 2010-08-23
5
Medium Priority
?
1,294 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
[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
  • 2
5 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

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.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

618 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