(OT?) HTML Question
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > (OT?) HTML Question




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    (OT?) HTML Question  
James Baker


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-23-04 10:54 PM

Is there a microsoft newsgroup where I can post a question such as the
following?

I have a form that has a couple input boxes and a "file" input box as well.
Basically you enter two text values, browse to a file and hit submit.  I
need to automate this, because I'm posting this data to another company's
website at regular intervals.  I assume I can just convert the text boxes to
hiddens with hardcoded values (they won't change).  But I need to convert
the "file" to a control that doesn't require input.  It will be posting the
same file every time.  Apparently I can't hardcode the value of the file
control, so how in the world do I go about this?

Thanks,
Jim







[ Post a follow-up to this message ]



    Re: (OT?) HTML Question  
Aaron [SQL Server MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-23-04 10:54 PM

You can't programmatically invoke the input type=file command... this HAS to
be user-driven.  You will need to find some way to do this (e.g. use a VBS
script to copy the file from one server to another, maybe via FTP or
\\fileshare\... you won't be able to automate a traditional upload via form
post without running third party tools.

--
http://www.aspfaq.com/
(Reverse address to reply.)




"James Baker" <cppjames@hotmail.com> wrote in message
news:uCcWh2RiEHA.3016@tk2msftngp13.phx.gbl...
> Is there a microsoft newsgroup where I can post a question such as the
> following?
>
> I have a form that has a couple input boxes and a "file" input box as
well.
> Basically you enter two text values, browse to a file and hit submit.  I
> need to automate this, because I'm posting this data to another company's
> website at regular intervals.  I assume I can just convert the text boxes
to
> hiddens with hardcoded values (they won't change).  But I need to convert
> the "file" to a control that doesn't require input.  It will be posting
the
> same file every time.  Apparently I can't hardcode the value of the file
> control, so how in the world do I go about this?
>
> Thanks,
> Jim
>
>







[ Post a follow-up to this message ]



    Re: (OT?) HTML Question  
James Baker


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-25-04 10:58 PM

The problem is, I don't even need to use an input type=file control, because
I know the exact path of the file every single time.  I've tried just
creating a hidden value with the filename in it, but it doesn't seem to have
the same behavior.  Is there more to the input type=file control than just
finding the file and storing it in a text box?

Thanks,
Jim


"Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:uQyYP%23RiEHA.1384@TK2MSFTNGP10.phx.gbl...
> You can't programmatically invoke the input type=file command... this HAS
to
> be user-driven.  You will need to find some way to do this (e.g. use a VBS
> script to copy the file from one server to another, maybe via FTP or
> \\fileshare\... you won't be able to automate a traditional upload via
form
> post without running third party tools.
>
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
>
>
> "James Baker" <cppjames@hotmail.com> wrote in message
> news:uCcWh2RiEHA.3016@tk2msftngp13.phx.gbl... 
> well. 
company's[vbcol=seagreen] 
boxes[vbcol=seagreen]
> to 
convert[vbcol=seagreen] 
> the 
>
>







[ Post a follow-up to this message ]



    Re: (OT?) HTML Question  
Aaron [SQL Server MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-25-04 10:58 PM

> The problem is, I don't even need to use an input type=file control,
because
> I know the exact path of the file every single time.

The problem is, input type=file is the only way for a browser to upload a
file using an ASP page.

> Is there more to the input type=file control than just
> finding the file and storing it in a text box?

Yes!

--
http://www.aspfaq.com/
(Reverse address to reply.)







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:30 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register