Solved

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

Posted on 2008-10-30
2
382 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

18 Experts available now in Live!

Get 1:1 Help Now