473,471 Members | 4,095 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Passing Variables from ImageUpload.aspx to current window

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
Nov 28 '06 #1
1 1137
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.

"Bama" <rb***@hotmail.comwrote in message
news:B0**********************************@microsof t.com...
>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
Nov 28 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Patient Guy | last post by:
I have a library of functions representing a filesystem interface (essentially a file selection interface, to be used in opening/reading/writing/closing files). Heavily scripted HTML document...
1
by: sumit | last post by:
hi, I am opening a popup using window.showModalDialog ('abc.aspx','','dialogWidth:1200px;dialogHeight:800px;left: true;help:no;resizable:yes;');"); In abc.aspx, session variables should be...
2
by: Les Peabody | last post by:
Hello. I'm a rookie ASP VBScripter and am having a difficult time scripting the following scenario: I have an index.asp file that has a multi-line text box and a button of type button. When...
1
by: Russell | last post by:
Hi there, I'm currently creating a .NET Web Application and I have a question about passing values from one screen to another. I previously used Session variables in the code to store these...
2
by: Jim Heavey | last post by:
I know that I can create session variables and pass those values from one screen to another, but is there not a way to makes variables from one scree n available to another screen other then...
8
by: JJ | last post by:
Hi, What's the preferred way to pass variables around to different pages now? Or if my reading servers me right they are retained in memory for the life of the app, correct? How do I access...
8
by: Chris | last post by:
Hi, I have two froms (form1 and form2). I want to be able to pass values from form 1 to form2 and be able to use those values leter in form2. This is my code for form1 Private Sub...
2
by: Neo Geshel | last post by:
Greetings. I have a file upload form. I have a file upload input, with its ID set as ImageUpLoad. When I try to submit the form, I get Name 'ImageUpLoad' is not declared This is the line...
8
by: JJ | last post by:
Whats the best way to pass a variable from a popup to the current page (without a postback on the current page). I have a form on 'page1' with various text input boxes. One box contains an image...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.