Solved

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

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 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