ASP.Net: AJAX Modal Popup: to allow Edit/Update using FormView in the popup

Posted on 2007-07-23
Last Modified: 2008-03-17
Hello Experts,

I want to display a Modal Popup Dialogbox in ASP.Net using AJAX ModalPopup with a FormView, wich allows the user to Edit/Update using FormView within the popup, when the user select one item of gridView. That is, the popup should come with a FormView, when the user click on a select button in gridview. How to accomplish this. It will be appreciative, if you could give step by step tutorial. This is very urgent one. Please help me.

Thank you,
Question by:PaulsonGeorge
    LVL 5

    Expert Comment

    Does this help?? if not please let me know ...
    LVL 4

    Author Comment

    I am asking about AJAX Modal Popup only. I know about toolkit very well. Please read the question and give solution for that. I know about some forum threads in forum. So please avoid that also.

    Anyway, thanks for your effort.
    LVL 5

    Accepted Solution

    I managed to do the exact thing by following this great tutorial:

    Think this will be your solution as well!

    Expert Comment

    if you visited Matt Berseth's site
    you discovered that everyone asked about saving the data. In Matt' solution he provided a btnSave that left the implementation up to you.  But there is nothing on the web about how to do that.

    The solution is to not add a btnSave to the panel. Instead use what's already available in the formview's update link. Now the only problem is that clicking the Edit button makes the panel disappear. So you click the link to display it again and now you are in Edit mode.

    To get around this add the formview property DefaultMode = "Edit".

    Now the panel opens the formview in Edit mode ready for user changes and the Update link updates the back-end.

    The Lake Man

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    755 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