Solved

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

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
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…

717 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