Forums
This topic is locked
pure asp.net upload & stored procedures
Posted 04 Aug 2003 15:59:10
1
has voted
04 Aug 2003 15:59:10 Howard Spencer posted:
I'm trying to get the asp.net version of the upload working but using a stored procedure to insert fields into a database.This is my first .net website so I'm not too sure I've done everthing right.
I've followed the tutorial and added the form and all required fields, but instead of using the insert record behaviour I need to use a stored procedure.
I've added the stored procedure and configured all the parameters so that they will accept the data from the form.
I've then added the pure asp.net upload.
When I run the page it just uploads the file but doesn't insert any data into the database.
Any help would be appreciated
Replies
Replied 04 Aug 2003 16:28:27
04 Aug 2003 16:28:27 Rik Eshuis replied:
This behavior is exactly what I would expect when you are not using the standard MacroMedia insert behavior.
The workaround to your problem is to use the Upload extension directly to get the value from your field, with the following command in your code :
pfu.getFileName("the name of your upload field here"
Let me know if this works out for you !
---------------------------------------
Rik Eshuis
---------------------------------------
The workaround to your problem is to use the Upload extension directly to get the value from your field, with the following command in your code :
pfu.getFileName("the name of your upload field here"
Let me know if this works out for you !
---------------------------------------
Rik Eshuis
---------------------------------------
Replied 04 Aug 2003 17:00:34
04 Aug 2003 17:00:34 Howard Spencer replied:
Sorry, I don't understand where I put the pfu.getFileName("filename" in the code
I would be grateful if you could explain further.
I would be grateful if you could explain further.
Replied 04 Aug 2003 17:34:26
04 Aug 2003 17:34:26 Rik Eshuis replied:
please sent me your code by email and I will see what I can do !
---------------------------------------
Rik Eshuis
---------------------------------------
---------------------------------------
Rik Eshuis
---------------------------------------