473,322 Members | 1,566 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,322 software developers and data experts.

request object and server .transfer

JT
is there a way to clear out the request.form collection, or the entire
request object, for that matter??

im using server.transfer and this can be troublesome in cases where you need
the request.form items to be reset.

tia

jt
Jul 19 '05 #1
3 2138
"JT" <jt@nospam.com> wrote in message
news:eo***************@tk2msftngp13.phx.gbl...
is there a way to clear out the request.form collection, or the entire
request object, for that matter??

im using server.transfer and this can be troublesome in cases where you need the request.form items to be reset.


No, the Request Object is read-only.
Jul 19 '05 #2
"JT" wrote in message news:eo***************@tk2msftngp13.phx.gbl...
: is there a way to clear out the request.form collection, or the entire
: request object, for that matter??
:
: im using server.transfer and this can be troublesome in cases where you
need
: the request.form items to be reset.

Please explain why it makes a difference what is in the page header.
Perhaps there is a different approach to accomplish the goal you have set?!

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #3
JT
ok here is my scenario - using model, vew , controller architecture:

-- user submits the view page to the controller
-- controller issues a server.execute on a model page to update the changed
information
-- upon successful updating of the the information, the controller issues a
server.transfer back to the view
-- everything is fine at at this point, however, if the user hits the
'refresh' button on his/her browser (for whatever reason) the
page gets resubmitted. now - the original items are still in the
request object from the first time around because the page never went out of
scope - so this causes another update to be inssued because changes are
detected between what is in the database and what is in the request.form
collection.

hope this is a bit clearer - by the way, im open to any suggestions about
architecture alternatives, etc.

thanks much for the help.

jt
"Roland Hall" <nobody@nowhere> wrote in message
news:ej**************@TK2MSFTNGP09.phx.gbl...
"JT" wrote in message news:eo***************@tk2msftngp13.phx.gbl...
: is there a way to clear out the request.form collection, or the entire
: request object, for that matter??
:
: im using server.transfer and this can be troublesome in cases where you
need
: the request.form items to be reset.

Please explain why it makes a difference what is in the page header.
Perhaps there is a different approach to accomplish the goal you have set?!
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp MSDN Library - http://msdn.microsoft.com/library/default.asp

Jul 19 '05 #4

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

Similar topics

2
by: RobertHillEDS | last post by:
While using the Soap generated ASP code, I would like to dump the raw contents of the request and response objects using Response.AppendToLog. I have tried using variations of the following code,...
3
by: Daniel Groh | last post by:
Hi, I've written a C# Server.Transfer from WebForm1.aspx to WebForm2.aspx In both i'm using the same user control but with different params, for example; In the user control: ...
2
by: Eidolon | last post by:
Heres what i am trying to do: In the codebehind code for a page, i want to be able to send the request on to another page, but with different form values than what may have been submitted to me....
3
by: Steve Taylor | last post by:
Here's what happening: - I have a global error trap set in global.asax defined as: protected void Application_Error(Object sender, EventArgs e) {...
8
by: daberelay | last post by:
Hi, I'm using IHttpModule class (added to GAC and machine.config) to get requests of non existing pages in my web server and redirect them to different pages, using the...
4
by: Jit Prasad | last post by:
I have a working client-side Vb.Net (.net v1.0) app that talks to a Webspere webservice on a windows 2000 server. The client side app runs on a citrix server, also a Windows 2000 server. The app...
4
by: serge calderara | last post by:
Dear all, I have an ASP 1.1 application wchich need to extract data of a particular selected day by users. When day has been selected from a calendar control the following code is run : ...
0
by: Gorkana | last post by:
When doing Server.Transfer I am getting the following error 'Error executing child request ' after I make the change in the web.config debug="true" to debug="false". When set to true the transfer...
2
by: MDANH2002 | last post by:
Hi From VB.NET I want to simulate the POST request of the following HTML form <html> <title>HTTP Post Testing</title> <body> <form action=http://www.example.com/postdata ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.