Hello,
I am currently using an evaluation version the (latest) sa file up
component.
I have noticed and am concerned with the fact that the file up form
collection, seems
to support only one reading of values. Once i have created an instance
of the file up component upload a file and destroy it i am unable to gain
access to
posted values again.
This makes it difficult in a more object oriented approach to programming. I
have a class
responsible for uploading a file, and a class responsible for inserting data
in a db.
Only the first class that is called to extract info from the file up form
collection is populated
with data..after that all is gone.
Why is this ?
Is their a way around it? 4 1505
You should find (in the user manual) an explanation of how to get those
other values.
Basic documentation.. .. http://support.softartisans.com/docs/FileUpV4
the answer to your question... http://support.softartisans.com/docs...g_multiple.htm
"Adam Knight" <aj*******@optu snet.com.au> wrote in message
news:uo******** ******@tk2msftn gp13.phx.gbl... Hello,
I am currently using an evaluation version the (latest) sa file up component. I have noticed and am concerned with the fact that the file up form collection, seems to support only one reading of values. Once i have created an instance of the file up component upload a file and destroy it i am unable to gain access to posted values again.
This makes it difficult in a more object oriented approach to programming.
I have a class responsible for uploading a file, and a class responsible for inserting
data in a db. Only the first class that is called to extract info from the file up form collection is populated with data..after that all is gone.
Why is this ? Is their a way around it?
Tnanx Tom,
I understand how to get the values using the form and formEx collections.
My problem is if i create two instances of the fileup component to access
different
form field values...the second instance doesn't seem to have any data...
it is all gone..
"TomB" <sh*****@hotmai l.com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l... You should find (in the user manual) an explanation of how to get those other values.
Basic documentation.. .. http://support.softartisans.com/docs/FileUpV4
the answer to your question... http://support.softartisans.com/docs...g_multiple.htm
"Adam Knight" <aj*******@optu snet.com.au> wrote in message news:uo******** ******@tk2msftn gp13.phx.gbl... Hello,
I am currently using an evaluation version the (latest) sa file up component. I have noticed and am concerned with the fact that the file up form collection, seems to support only one reading of values. Once i have created an instance of the file up component upload a file and destroy it i am unable to
gain access to posted values again.
This makes it difficult in a more object oriented approach to
programming. I have a class responsible for uploading a file, and a class responsible for inserting data in a db. Only the first class that is called to extract info from the file up
form collection is populated with data..after that all is gone.
Why is this ? Is their a way around it?
When you create the first instance, it grabs all of the values.
What you need to do is pull all of the data out of the first instance and
store them in variables then pass the values to your classes.
"Adam Knight" <aj*******@optu snet.com.au> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. Tnanx Tom,
I understand how to get the values using the form and formEx collections. My problem is if i create two instances of the fileup component to access different form field values...the second instance doesn't seem to have any data... it is all gone..
"TomB" <sh*****@hotmai l.com> wrote in message news:%2******** **********@TK2M SFTNGP12.phx.gb l... You should find (in the user manual) an explanation of how to get those other values.
Basic documentation.. .. http://support.softartisans.com/docs/FileUpV4
the answer to your question... http://support.softartisans.com/docs...g_multiple.htm
"Adam Knight" <aj*******@optu snet.com.au> wrote in message news:uo******** ******@tk2msftn gp13.phx.gbl... Hello,
I am currently using an evaluation version the (latest) sa file up component. I have noticed and am concerned with the fact that the file up form collection, seems to support only one reading of values. Once i have created an instance of the file up component upload a file and destroy it i am unable to gain access to posted values again.
This makes it difficult in a more object oriented approach to programming. I have a class responsible for uploading a file, and a class responsible for
inserting data in a db. Only the first class that is called to extract info from the file up form collection is populated with data..after that all is gone.
Why is this ? Is their a way around it?
"Adam Knight" <aj*******@optu snet.com.au> wrote in message news:<#t******* *******@TK2MSFT NGP09.phx.gbl>. .. Tnanx Tom,
I understand how to get the values using the form and formEx collections. My problem is if i create two instances of the fileup component to access different form field values...the second instance doesn't seem to have any data... it is all gone..
Hi Adam,
There should only be one instantiation of FileUp per HTTP request.
The first and only the first instantiation will consume and parse the
request from the client, leaving nothing more for the second instance
to read. I advise you to rework your object design so that your two
classes use the same instance of FileUp. Perhaps you could pass the
instance of FileUp to your second object instead of having it create a
brand new instance. You could also quite easily transfer the contents
of the Form collection into a Scripting.Dicti onary object.
Best,
Chris This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Thomas G. Marshall |
last post by:
This message is sent to these newsgroups because they are no longer
valid:
comp.lang.java
comp.lang.java.api
comp.lang.java.bugs
comp.lang.java.misc
comp.lang.java.setup
comp.lang.java.tech
|
by: Az Tech |
last post by:
Hi people,
(Sorry for the somewhat long post).
I request some of the people on this group who have good experience
using object-orientation in the field, to please give some good ideas
for topics to include in a course on object-orientation that I'm going
to conduct.
(I will later summarize all the replies and discussion, for the
|
by: alwayshouston |
last post by:
Hi All!
I am working on this very small database and I am confused in the
designing a simple form. I only have three tables in the database.
First Table: tblExpense
Columns: ExpenseID ; ExpenseType
Data:
1 ; FOOD
2 ; AIRLINE
3 ; FARE
|
by: gtippery |
last post by:
Newbie-ish questions - I've been away from C for a _long_ time.
It seems to me that there ought to be easier (or at least shorter) ways
to do what this does. It does compile & run for me (with PowerC, a
16-bit DOS compiler); if there are nonstandard or "accidentally-works"
aspects, please let me know.
{This is the sort of situation where if I knew *what* to Google for, I
wouldn't *need* to... <grin>}
|
by: Jason |
last post by:
Hi,
I was wondering if any could point me to an example or give me ideas on how
to dynamically create a form based on a database table? So, I would have a
table designed to tell my application to create certain textboxes, labels,
and combo boxes? Any ideas would be appreciated.
Thanks
| |
by: Junkguy |
last post by:
I need to be able to tell if the blank row of a DataGrid has been edited or
not.
In a DataGrid, you may notice that if you click on the asterisk row, the
asterisk will change to a triangle, but no "new" blank asterisked row will be
added to the bottom *until* you type some data. How can I tell if you have
begun to type data into this row or not?
Here is the reason I need this. I need to call
CurrencyManager.EndCurrentEdit() on a row...
|
by: David Van D |
last post by:
Hi there,
A few weeks until I begin my journey towards a degree in Computer
Science at Canterbury University in New Zealand,
Anyway the course tutors are going to be teaching us JAVA wth bluej and
I was wondering if anyone here would be able to give me some tips for
young players such as myself, for learning the language.
Is this the best Newsgroup for support with JAVA?
|
by: KitKat |
last post by:
I need to get this to go to each folders: Cam 1, Cam 2, Cam 4, Cam 6, Cam 7,
and Cam 8. Well it does that but it also needs to change the file name to
the same folder where the file is being grabbed, BUT it doesn't. I have
tried and tried.....please help
example: C:\Projects\Darryl\Queue Review Files\2-24\Cam
7\Cam7-20060224170000-01.jpg
Cam7 but all I keep getting is Cam1, as the beginning of the jpg
name,...:( HELP!
|
by: gs |
last post by:
let say I have to deal with various date format and I am give format string
from one of the following
dd/mm/yyyy
mm/dd/yyyy
dd/mmm/yyyy
mmm/dd/yyyy
dd/mm/yy
mm/dd/yy
dd/mmm/yy
mmm/dd/yy
|
by: Paul Neave |
last post by:
Hello all.
Please try this link for me and let me know what you see:
http://www.neave.com/temp/stretch_test.html
You should see a green header filling the top of the page, a red footer
at the very bottom of the page and a white Flash movie filling the gap
in between. You'll need at least Flash Player 7, otherwise it will just
show black. It shouldn't scroll, it should act like a framed page but
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |