IIS ASP - Request.Form collection lost on submit

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > May 2005 > Request.Form collection lost on submit





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Request.Form collection lost on submit
mvr

2005-05-25, 6:01 pm

Hi all

IIS 5.0, ASP, and https://

I have "DataEntrypage.asp" which is a data entry page(about 250
data elements includes text boxes, radio buttons, check boxes, drop down
boxes etc).

After the data validation through javascript(form.action =
"ProcessData.asp" )I post this page to "ProcessData.asp" which process all
the database transactions like updates, deletes and inserts.

At the begining/top of the "ProcessData.asp" I loop through
Request.Form collection and store them in a text file on the WEB SERVER.

Once in a while the whole Request.Form collection is disappearing in
the text file. At that instances it is creating the text file with size of
1kb but it is not
showing any thing in the file.

I checked and it is not loosing the session information.

Does any one ran into this situation. Any lead will be appreciated.

Thanks
mvr







Ray Costanzo [MVP]

2005-05-25, 6:01 pm

Have you ever seen this behavior directly? Like, instead of seeing an empty
file and assuming that means that the request.form collection is empty? How
do you know it's not something else?

Ray at work

"mvr" <v_enkat@hotmail.com> wrote in message
news:OI$c6rTYFHA.712@TK2MSFTNGP14.phx.gbl...
> Hi all
>
> IIS 5.0, ASP, and https://
>
> I have "DataEntrypage.asp" which is a data entry page(about 250
> data elements includes text boxes, radio buttons, check boxes, drop down
> boxes etc).
>
> After the data validation through javascript(form.action =
> "ProcessData.asp" )I post this page to "ProcessData.asp" which process all
> the database transactions like updates, deletes and inserts.
>
> At the begining/top of the "ProcessData.asp" I loop through
> Request.Form collection and store them in a text file on the WEB SERVER.
>
> Once in a while the whole Request.Form collection is disappearing

in
> the text file. At that instances it is creating the text file with size of
> 1kb but it is not
> showing any thing in the file.
>
> I checked and it is not loosing the session information.
>
> Does any one ran into this situation. Any lead will be

appreciated.
>
> Thanks
> mvr
>
>
>
>
>
>
>



mvr

2005-05-26, 6:00 pm

Ray

Yes, I saw the result directly on my database tables.

In the case of empty request.form collection the table's are updated with
null values, clearing the old prefill data.
(Programmed under the assumption that we will get data by request.form
collection and the page "ProcessData.asp" process the update based on the
request.form values )

The key feild I use to update is the logged in user(a session variable). I
see an updated executed by this user on the database table.

Apart from the session variable I was trapping the user's browser info,
which I can see on the text file I created.

I started creating this text file only after the fact that we are loosing
some data.

Thanks
mvr


"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:ekmC0IVYFHA.3220@TK2MSFTNGP14.phx.gbl...
> Have you ever seen this behavior directly? Like, instead of seeing an

empty
> file and assuming that means that the request.form collection is empty?

How
> do you know it's not something else?
>
> Ray at work
>
> "mvr" <v_enkat@hotmail.com> wrote in message
> news:OI$c6rTYFHA.712@TK2MSFTNGP14.phx.gbl...
250[vbcol=seagreen]
all[vbcol=seagreen]
disappearing[vbcol=seagreen]
> in
of[vbcol=seagreen]
> appreciated.
>
>



Dave Anderson

2005-05-26, 6:00 pm

mvr wrote:
> At the begining/top of the "ProcessData.asp" I loop through
> Request.Form collection and store them in a text file on the
> WEB SERVER.


And just how do you prevent processes from stepping on each other? Do you
create a different text file for each session? If not, I would expect
exactly the type of behavior you describe.


--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.


Ray Costanzo [MVP]

2005-05-26, 6:00 pm

I have seen the request.form collection be empty when using Windows
authentication on a site. Are you using that?

Ray at work

"mvr" <v_enkat@hotmail.com> wrote in message
news:eCe$$ifYFHA.2288@TK2MSFTNGP14.phx.gbl...
> Ray
>
> Yes, I saw the result directly on my database tables.
>
> In the case of empty request.form collection the table's are updated with
> null values, clearing the old prefill data.
> (Programmed under the assumption that we will get data by request.form
> collection and the page "ProcessData.asp" process the update based on the
> request.form values )
>
> The key feild I use to update is the logged in user(a session variable). I
> see an updated executed by this user on the database table.
>
> Apart from the session variable I was trapping the user's browser info,
> which I can see on the text file I created.
>
> I started creating this text file only after the fact that we are loosing
> some data.
>
> Thanks
> mvr
>
>
> "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
> message news:ekmC0IVYFHA.3220@TK2MSFTNGP14.phx.gbl...
> empty
> How
> 250
down[vbcol=seagreen]
> all
SERVER.[vbcol=seagreen]
> disappearing
size[vbcol=seagreen]
> of
>
>



mvr

2005-05-27, 5:56 pm

Do you mean, "Integrated Windows authentication" on Authentication Methods.
If so "Yes" we are us windows authentication.
So what is the work around?

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:uJ9vlzhYFHA.2588@TK2MSFTNGP14.phx.gbl...
> I have seen the request.form collection be empty when using Windows
> authentication on a site. Are you using that?
>
> Ray at work
>
> "mvr" <v_enkat@hotmail.com> wrote in message
> news:eCe$$ifYFHA.2288@TK2MSFTNGP14.phx.gbl...
with[vbcol=seagreen]
the[vbcol=seagreen]
I[vbcol=seagreen]
loosing[vbcol=seagreen]
empty?[vbcol=seagreen]
page(about[vbcol=seagreen]
> down
process[vbcol=seagreen]
> SERVER.
> size
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com