Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-22-2002, 11:27 PM   PM User | #1
gibby
New Coder

 
Join Date: Aug 2002
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
gibby is an unknown quantity at this point
uploading using asp

I use JavaScript as the server side language and ive found a script a that will upload files and it works perfectly when it’s run on its demo page(that the zip comes with), but when I modified the script to fit my page it doesn’t work.
I know why the script doesn’t work, it’s because it uses this code

var form = Server.CreateObject("MyRequest.Form");
form.Init();

ive already got a form on the same page which im trying to post the data to that I can’t remove. The other form on the page is part of the user login which is in the side navigation bar on every page. When I try and run the page I get this error

Error Type:
Form.Init() (0x80040200)
Input type was not expected

Im almost positive that the reason for the error is because when it does the form.Init it gets fields its not expecting which are the user name and password field.

Is there anyway I can change this line

var form = Server.CreateObject("MyRequest.Form");

so it only makes an object out of the form I want it to ? ive tried a few things but haven’t had any luck.

PLEASE help me someone
gibby is offline   Reply With Quote
Old 08-25-2002, 04:01 PM   PM User | #2
smeagol
Regular Coder

 
Join Date: Jul 2002
Location: Kentucky
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
smeagol is an unknown quantity at this point
Could you provide a link to the website where you got component you are using? I'd be willing to take a look at it, but I need to know a little more about the component itself. I'll download it myself and check the methods and properties in VB6 if possible and see what it's looking for in the Init() method.

Smeagol
http://www.javascriptsolutions.com
smeagol is offline   Reply With Quote
Old 08-26-2002, 10:33 PM   PM User | #3
gibby
New Coder

 
Join Date: Aug 2002
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
gibby is an unknown quantity at this point
this is where I got the component from

http://www.codeproject.com/asp/aspupl.asp

I had a look at the dll but I havnt got a clue really I would really appreciate any help! :)
gibby is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:07 PM.


Advertisement
Log in to turn off these ads.