Passing Variables from ImageUpload.aspx to current window

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an employee database. Recently I need to add a new field for the photo
of each of the employee. I already have a form to enter new data for the
staff, and I am creating pop up window to upload the photo for each staff.
How do i pass variable from imageupload.aspx to the editstaffpage.aspx page .
The image is stored in different table from the staff table
 
If your pop up window is a modaldialog then you can pass the the parent
window as a parameter, and use window.dialogArguments (javascript) to set an
element in the parent window. I am assuming this is what you are trying to
do.

Or if you can use window.opener object to get an element of the parent
window to set the value.

On the editstaffpage, you will then have to resubmit the page to update the
image (I assume).

Hope this helps.
 
Back
Top