Solved

How do I use a GridView.CommandButton as ModalPopup.OKControlID and populate underlying page with data?

Posted on 2008-10-30
2
387 Views
Last Modified: 2008-12-31
I am using a ModalPopup to display a GridView with a resultset. I want to select a row from the GridView and upon selection have the modalpopup dismiss and populate the underlying page with the data from the gridview row.

I have seen numerous examples of the exact opposite scenario (i.e. using a gridview commandbutton to show a modalpopup), but nothing like what I am trying to do.

Any help is greatly appreciated.
0
Comment
Question by:SKlBUM
2 Comments
 
LVL 20

Accepted Solution

by:
Juan_Barrera earned 500 total points
ID: 22845874
Hi,
Have a look at this link: http://blogs.msdn.com/phaniraj/archive/2007/02/20/show-and-hide-modalpopupextender-from-javascript.aspx
You shouls be able to use the GridViewRowDataBound event to add the "onclick" attribute to each row, pointing to the javascript function explained in the link.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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