?
Solved

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

Posted on 2008-10-30
2
Medium Priority
?
394 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 20

Accepted Solution

by:
Juan_Barrera earned 2000 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

770 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