473,396 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Question about using Request.BinaryRead()

Hello,

I'm trying to build an application that will use
Request.BinaryRead() to save a number of uploads with progress display.
However, since there is little information on MSDN about this function, I
would like to seek some help here.

In the MSDN page, the function remark states that Request.Form[]
will fail once I used Request.BinaryRead(), so would it have effect on
objects like HtmlControls and Webcontrols, such as some properties cannot be
accessed? (In my page I have a dropdown selectbox, 30-40 input files plus a
submit button)

If I can use them without problem, I'll be appreciated to know that
do I need to do the BinaryRead before I access any of the objects?

Thanks a lot.

Regards,
Lau Lei Cheong
--
If you want to mail to me, please replace all instance of "e" to "a" in my
email address. Thank you.
Sorry for any inconvience caused, but there's many spam-mailers.
Nov 18 '05 #1
1 2244
yes. if you do a BinaryRead, you have taken over the parsing of the
postdata. this means page processing will no see any viewstate, postback
data. so controls will not have their postback value or fire events.

-- bruce (sqlwork.com)
"Lau Lei Cheong" <le****@yehoo.com.hk> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Hello,

I'm trying to build an application that will use
Request.BinaryRead() to save a number of uploads with progress display.
However, since there is little information on MSDN about this function, I
would like to seek some help here.

In the MSDN page, the function remark states that Request.Form[]
will fail once I used Request.BinaryRead(), so would it have effect on
objects like HtmlControls and Webcontrols, such as some properties cannot be accessed? (In my page I have a dropdown selectbox, 30-40 input files plus a submit button)

If I can use them without problem, I'll be appreciated to know that do I need to do the BinaryRead before I access any of the objects?

Thanks a lot.

Regards,
Lau Lei Cheong
--
If you want to mail to me, please replace all instance of "e" to "a" in my
email address. Thank you.
Sorry for any inconvience caused, but there's many spam-mailers.

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Christopher Brandsdal | last post by:
Hi! I get an error when I run my code Is there any other way to get te information from my form? Heres the error I get and the code beneath. Line 120 is market with ''''''''''''Line...
1
by: Roberto | last post by:
Sometimes when loading binary files with Request.BinaryRead IIS on the log gives me the following Error (I have analyzed IIS Log with Web Trend Analyzer and the error isn't frequent): POST...
1
by: Vince C. | last post by:
Hi. I'm trying to put upload results from an HTML form into an ADO stream. I thought I could code the following (JavaScript): var s = Server.CreateObject("ADODB.Stream"); s.Type =...
2
by: F. Nolet | last post by:
Hi, With IIS 6 - ASP : I try to upload a file of 125,000,000 bytes. To do it, I use this code : Request.BinaryRead(Request.TotalBytes) I get this error :
2
by: Arpan | last post by:
Under what circumstances can Request.BinaryRead() be useful & when should it be used? Assume that the value of Request.Form("anyvalue") is "a" (without the quotes). The output of <%...
3
by: Brian Birtle | last post by:
**** A CHALLENGE TO THE GURUS - refute the statement "It's impossible to build a file upload progress meter using ASP.NET" **** First person to prove me wrong gets "All Time .NET Programming GOD"...
2
by: Water Cooler v2 | last post by:
Just trying to experiment with the Request.BinaryRead(count) method. What's wrong with this script? <SCRIPT Language="VBScript" runat="server"> Dim b b =...
2
by: Griff | last post by:
Bizarre problem here.... I have a classic ASP web page that exists in one project. I have copied this code file into another web project and it errors! The code has not been altered in any...
0
skeptics
by: skeptics | last post by:
Trying to pass a SafeArray that i get form Request.BinaryRead Method in classic asp to a c# com interop component. In this thread i found a solution to pass and cast a normal asp safearray in to a c#...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.