I have to develop a time sheet application for my organization, where
employees will select the nature of work, enter client details (into textbox
inside grid) and other details and enter the number of hours spent.
In that, while selecting clients I have to show them a pop window which
again will have grid showing client address, name and other details. From the
pop up window employee will select a client. After that that client name and
address has to populate to the grid in the parent window.
Please let me know what is the best way to do this ? How to populate
selected value in pop-up window to grid in the parent window ?
Thanks for your help.
Harsha.
If it will be in a separated (popup) window then you need to pass an
id of the selected row using querystring. You may also check if you
can use a ModalPopupExtender from AJAX Control Toolkit
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ModalPopup/ModalPopup.aspx
http://dotnetslackers.com/Community/blogs/bmains/archive/2007/02/17/Modal-Popup-in-Gridview.aspx