Home All Groups Group Topic Archive Search About

GridView and AJAX ModalPopupExtender

Author
19 Sep 2007 7:14 PM
AlBruAn
I have a GridView control and an AJAX ModalPopupExtender control on my Web
page.  I've set the AutoGenerateSelectButton attribute to true such that
"Select" is in the first column of the GridView.  What I'd like to do with it
is display a modal popup showing additional details for the record on whose
row the user has clicked.  The problem is I don't know what to use for the
TargetControlID in the ModalPopupExtender control; I tried using the GridView
itself, but that caused problems by displaying the popup box whenever the
user wants to enter a Voucher Amount on any of the displayed rows.

How do I go about accomplishing the desired task?

Author
20 Sep 2007 12:20 AM
David R. Longnecker
Here's a blog entry I wrote the other day to use the MPE for modifying GridView
records--you could just use text boxes or a details view to view the records
if you wish.  The functionality of connecting the GridView to the MPE will
be the same.

http://tiredblogger.wordpress.com/2007/09/16/using-a-modal-popup-to-modify-linq-gridviews/

HTH.

-dl

--
David R. Longnecker
http://blog.tiredstudent.com

Show quote
> I have a GridView control and an AJAX ModalPopupExtender control on my
> Web page.  I've set the AutoGenerateSelectButton attribute to true
> such that "Select" is in the first column of the GridView.  What I'd
> like to do with it is display a modal popup showing additional details
> for the record on whose row the user has clicked.  The problem is I
> don't know what to use for the TargetControlID in the
> ModalPopupExtender control; I tried using the GridView itself, but
> that caused problems by displaying the popup box whenever the user
> wants to enter a Voucher Amount on any of the displayed rows.
>
> How do I go about accomplishing the desired task?
>

AddThis Social Bookmark Button