473,770 Members | 3,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2161
"JT" <jt@nospam.co m> wrote in message
news:eo******** *******@tk2msft ngp13.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******** *******@tk2msft ngp13.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******** ******@TK2MSFTN GP09.phx.gbl...
"JT" wrote in message news:eo******** *******@tk2msft ngp13.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
4102
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, but I may be barking up the wrong tree with this approach. Any expert help would greatly be appreciated. Dim objReader Set objReader = CreateObject("MSSOAP.SoapReader") objReader.Load Request
3
8689
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: if(Request.ServerVariables==Server.MapPath("WebForm1.aspx")){ lblTitle.Text = "Page 1";
2
2105
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. So for example's sake, say im a login page, and the request to me included form values of "uid" and "pwd". Now i want to transfer the user over to the search page for example, but Server.Transfer wont work, because i dont want to send him the...
3
2320
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) { HttpContext.Current.Server.Transfer("/salesnow/errors/SalesNow_Error.aspx"); } - My users are on occassion are getting the error: "Server Error in '/Salesnow' Application - Request timed out." - No aspx page is referenced anywhere in the *ugly* default error page.
8
1656
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 Context.Server.Transfer(Target) method. i.e : Original ==> http://myserver/notExist/HelloThere to Target ==> http://myserver/DoesExist/helloWorld.aspx
4
5137
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 worked ok till I installed .Net v1.1 on the citrix, now I get an error when I get the app to use .NET v1.1. If the app uses .NET v1.0 (with .NET v1.1 stalled), then its ok, however I must use v1.1 for other reasons. Has somebody come across...
4
8897
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 : Server.Transfer("ReelDay.aspx?day=" & m_day.ToString) After this the following erro occurs :
0
1649
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 works without issues but when false the error occures. In some of the cases I have managed to alter existing code to use Redirect but in some cases this is not practical without recoding a large number of pages that create a child object to be used...
2
6308
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 enctype="multipart/form-data" method="post" name="testform">
0
9602
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10237
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10071
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9882
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8905
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7431
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2832
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.