473,508 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

session variable between two windows

i'm using the dundas freelib upload code to upload files in my website.
when the user choses to upload a file a new window is opened and the
upload procedure goes fine and the file is uploaded successfully. but
the problem is the i want to know the name of the file in the parent
window to save it in the database. i tried to use a session variable
which contains the name of the file but it dosen't work.
the parent window contains a form which is used to insert new data in
the database so i can't use the upload window to insert the filename in
the database.

Jul 22 '05 #1
5 2569
Soha wrote on 30 apr 2005 in microsoft.public.inetserver.asp.general:
i'm using the dundas freelib upload code to upload files in my website.
when the user choses to upload a file a new window is opened and the
upload procedure goes fine and the file is uploaded successfully. but
the problem is the i want to know the name of the file in the parent
window to save it in the database. i tried to use a session variable
which contains the name of the file but it dosen't work.
the parent window contains a form which is used to insert new data in
the database so i can't use the upload window to insert the filename in
the database.


Use a streaming file for uploading and register the facts in your database
before the stream start.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #2
Evertjan. wrote on 30 apr 2005 in
microsoft.public.inetserver.asp.general:
Soha wrote on 30 apr 2005 in microsoft.public.inetserver.asp.general:
i'm using the dundas freelib upload code to upload files in my
website. when the user choses to upload a file a new window is opened
and the upload procedure goes fine and the file is uploaded
successfully. but the problem is the i want to know the name of the
file in the parent window to save it in the database. i tried to use
a session variable which contains the name of the file but it dosen't
work. the parent window contains a form which is used to insert new
data in the database so i can't use the upload window to insert the
filename in the database.


Use a streaming file for uploading and register the facts in your
database before the stream start.


Sorry, this is nonsense, I was thinking of downloading.

;-}

Uploading registration depends upon the uploader module.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #3
here is some code from one of my projects...
I think "UserFilename" is what you want

I cant remember what is going on with the "ServerAssignedName"

You will have to play around with it..
set Upload = server.CreateObject("Dundas.Upload.2")
Upload.UseUniqueNames = True
Upload.MaxFileSize = 1048576
Upload.Save(UploadDirectory)

ServerAssignedName = Mid(Upload.Files(0).Path,
InstrRev(Upload.Files(0).Path,"\") + 1)
UserFilename = Mid(Upload.Files(0).OriginalPath,
InstrRev(Upload.Files(0).OriginalPath,"\") + 1)


"Soha" <se******@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
i'm using the dundas freelib upload code to upload files in my website.
when the user choses to upload a file a new window is opened and the
upload procedure goes fine and the file is uploaded successfully. but
the problem is the i want to know the name of the file in the parent
window to save it in the database. i tried to use a session variable
which contains the name of the file but it dosen't work.
the parent window contains a form which is used to insert new data in
the database so i can't use the upload window to insert the filename in
the database.

Jul 22 '05 #4
and look out because that code got line breaks added to it when I posted it

"Kyle Peterson" <kp*****@hotmail.com> wrote in message
news:O1**************@TK2MSFTNGP10.phx.gbl...
here is some code from one of my projects...
I think "UserFilename" is what you want

I cant remember what is going on with the "ServerAssignedName"

You will have to play around with it..
set Upload = server.CreateObject("Dundas.Upload.2")
Upload.UseUniqueNames = True
Upload.MaxFileSize = 1048576
Upload.Save(UploadDirectory)

ServerAssignedName = Mid(Upload.Files(0).Path,
InstrRev(Upload.Files(0).Path,"\") + 1)
UserFilename = Mid(Upload.Files(0).OriginalPath,
InstrRev(Upload.Files(0).OriginalPath,"\") + 1)


"Soha" <se******@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
i'm using the dundas freelib upload code to upload files in my website.
when the user choses to upload a file a new window is opened and the
upload procedure goes fine and the file is uploaded successfully. but
the problem is the i want to know the name of the file in the parent
window to save it in the database. i tried to use a session variable
which contains the name of the file but it dosen't work.
the parent window contains a form which is used to insert new data in
the database so i can't use the upload window to insert the filename in
the database.


Jul 22 '05 #5
i'm sorry but i didn't understand what is "ServerAssignedName". form
the code i see that ur building a name of the file file but how can i
use this name in the parent window. dose the parent window see this
ServerAssignedName"? is it available for the other pages displayed in
the parent window?

Jul 22 '05 #6

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

Similar topics

9
3628
by: Pack Fan | last post by:
I've noticed that session variables will persist on Mac IE even after all browser windows have been closed. One must quit the program to clear the session variables. This presents a security risk...
3
2903
by: Geoff Winsor | last post by:
Hi, I am experiencing a problem with recalling a session variable which stores whether a person is logged in to a "members only" section of a website. This area of the site has been working...
3
7310
by: Michelle Stone | last post by:
hi al i have "variab1 = window.open ("a.aspx", "helloworld"); i do this inside a RegisterStartupScrict ("key", "<script language=javascript>******</script>"); where ***** is hte javascript...
5
2191
by: ASP.Confused | last post by:
As you can tell from my previous posts on this issue...I'm really confused :-/ I have a few ASP.NET web applications on my web host's "https" server. Our web host has a single "bin" folder for...
13
2787
by: Alexander Widera | last post by:
hi, who has seen the follow problem or could help please? i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i...
4
1941
by: T Ralya | last post by:
I am told that ASP.NET controls the session ID and session variables, but that does not fit my symptoms. I am posting here as directed. I'm hoping that someone can at least recommend something to...
14
2891
by: Martin Walke | last post by:
Hi all, Is there any limit to the number of session variables a site can have? And is that affected by global.asa at all? The reason why i ask is that i have a relatively simple site that...
26
3578
by: BillE | last post by:
Some ASP.NET applications use Session Variables extensively to maintain state. These should be re-written to use viewstate, hidden fields, querystring, etc. instead. This is because if a user...
4
2860
by: rgparkins | last post by:
Hello I am running out of time with a problem I have running PHP 5.04 and Apache 2.0 and really need help :(. I have a page that stores a variable in session but each time I reload that page the...
8
4174
by: YYZ | last post by:
I'm using asp, not asp.net. I've got some open ended questions that I was really hoping someone in here could answer, or direct me to some resources that will help me answer them on my own. ...
0
7226
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
7125
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
7328
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7388
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...
1
7049
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5631
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,...
0
3186
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1561
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 ...
1
767
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.