What is "Wishes" and what are they for?
Forced submit
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > ASP web-programming > Forced submit 6 September 2008 10:23:10

  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

Forced submit

Ellie 6 September 2008 10:23:10
 How can I force a submit on a form. I want to load a form but then I want to
close it and have it do something and then redirect it. This is ASP 3.0.
thanks

Add comment
Evertjan. 6 September 2008 01:53:52 permanent link ]
 Ellie wrote on 05 sep 2008 in microsoft.public.in­etserver.asp.general­:

I can get that accomplished with having a redirect to a form
input page, pass it the file information to upload, submit the form
and then redirect it back to what the original page was doing.

You cannot do anything clientside, like submit a form,
and after that do a serverside redirect.

And a clientside redirect, what is that?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Add comment
Anthony Jones 6 September 2008 10:23:10 permanent link ]
 "Ellie" <ellymay999nospam@n­ospamnetzero.com> wrote in message
news:O8Cr8o5DJHA.34­0@TK2MSFTNGP03.phx.g­bl...
Probably because I don't know what I'm doing! I have to upload a file but
it doesn't work if I try to put it in the same asp page as all of the
other processing. I have to add the ENCTYPE="multipart/­form-data" to the
form statement which my page doesn't seem to like. I didn't know I could
have more than one form on a page??? This does open up a lot more
possibilitie but it seems I can get that accomplished with having a
redirect to a form input page, pass it the file information to upload,
submit the form and then redirect it back to what the original page was
doing.

What are you using on the serverside to receive the file?

When using multipart/form-data­ encoding ASPs Request.Form collection is not
able to return the field contents. The fields are there but encoded as mime
parts which ASP doesn't understand. Some serverside uploader tools allow
you to access these fields. Without this sort of support it will be
difficult to achieve what you want in a pure HTML form.

Note that a file input cannot be initialised with a file path. Hence any
plan to have the response form an ordinary post to automatically send
another post containing the file will fail.


--
Anthony Jones - MVP ASP/ASP.NET

Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > ASP web-programming > Forced submit 6 September 2008 10:23:10

see also:
Process Timestamp?
Sensitive mail filtering devices
пройди тесты:
see also:
The most known WebOS-es
Hello,to everyone!
World’s Most Unusual Christmas Trees

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .