I have inherited a set of asp pages that I now need to augment. In
order to minimize changes to production code, I would like to make a
"call" to an asp page from a new asp page. Existing code is using
many Request.Form variables, and I would very much prefer not to
change this code. The new page will retrieve data that I would like
to fill into Request.Form variables that are used in the old code.
So, is it possible for me to set Request.Form variables from within an
asp page and then fire off a second page that uses those variables as
well as any Request.Form variables that were passed to the original
page. Additionaly, it should all occur on the server, and the client
would only get a response after all on the server is complete.
Thanks.
-Thomas 18 5435
Thomas Lunsford wrote:
I have inherited a set of asp pages that I now need to augment. In
order to minimize changes to production code, I would like to make a
"call" to an asp page from a new asp page. Existing code is using
many Request.Form variables, and I would very much prefer not to
change this code. The new page will retrieve data that I would like
to fill into Request.Form variables that are used in the old code.
So, is it possible for me to set Request.Form variables from within an
asp page and then fire off a second page that uses those variables as
well as any Request.Form variables that were passed to the original
page. Additionaly, it should all occur on the server, and the client
would only get a response after all on the server is complete.
No. the Request object collections are readonly.
However, you can use Server.Execute to execute code in another page
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
On May 11, 12:18 pm, "Bob Barrows [MVP]" <reb01...@NOyah oo.SPAMcom>
wrote:
Thomas Lunsford wrote:
I have inherited a set of asp pages that I now need to augment. In
order to minimize changes to production code, I would like to make a
"call" to an asp page from a new asp page. Existing code is using
many Request.Form variables, and I would very much prefer not to
change this code. The new page will retrieve data that I would like
to fill into Request.Form variables that are used in the old code.
So, is it possible for me to set Request.Form variables from within an
asp page and then fire off a second page that uses those variables as
well as any Request.Form variables that were passed to the original
page. Additionaly, it should all occur on the server, and the client
would only get a response after all on the server is complete.
No. the Request object collections are readonly.
However, you can use Server.Execute to execute code in another page
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob, Thanks for the reply. I have tried a number of things, and it
appears that I need to create and populate a form on my new page that
gets submitted to the other page. I would like to do this server side
only. Is this possible? I have tried ServerXMLHTTP, and which works
great, but Microsoft has warned against using it in IIS because it can
cause thread deadlocking. So, if I could just perform the submit from
the server, I think my problem would be solved.
-Thomas
Thomas Lunsford wrote:
On May 11, 12:18 pm, "Bob Barrows [MVP]" <reb01...@NOyah oo.SPAMcom>
wrote:
>Thomas Lunsford wrote:
>>I have inherited a set of asp pages that I now need to augment. In order to minimize changes to production code, I would like to make a "call" to an asp page from a new asp page. Existing code is using many Request.Form variables, and I would very much prefer not to change this code. The new page will retrieve data that I would like to fill into Request.Form variables that are used in the old code.
>>So, is it possible for me to set Request.Form variables from within an asp page and then fire off a second page that uses those variables as well as any Request.Form variables that were passed to the original page. Additionaly, it should all occur on the server, and the client would only get a response after all on the server is complete.
No. the Request object collections are readonly.
However, you can use Server.Execute to execute code in another page
Bob, Thanks for the reply. I have tried a number of things, and it
appears that I need to create and populate a form on my new page that
gets submitted to the other page. I would like to do this server side
only. Is this possible? I have tried ServerXMLHTTP, and which works
great, but Microsoft has warned against using it in IIS because it can
cause thread deadlocking.
Could you provide a citation for this? I know they advise against using
the XMLHTTPRequest object in server-side code, but I've never seen an
admonishment against using the XMLHTTPServer object which was designed
to be used in the IIS environment.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
The following link is a newsgroup posting from a Microsoft employee... http://groups.google.com/group/micro...0c25d38c8680c2
Our production environment is hallowed ground, so I'm leery of taking
chances, especially after reading the posting in the above link. I
have not yet found a good explanation of all the repercussions of
Isolated Application Protection in IIS, so that spooks me a bit.
I would like to know whether using ServerXMLHTTP is common practice
and whether it has other known limitations/problems. I'm still
learning and researching.
Any information you can provide is greatly appreciated.
Thanks.
-Thomas
Thomas Lunsford wrote:
The following link is a newsgroup posting from a Microsoft employee...
http://groups.google.com/group/micro...0c25d38c8680c2
Our production environment is hallowed ground, so I'm leery of taking
chances, especially after reading the posting in the above link. I
have not yet found a good explanation of all the repercussions of
Isolated Application Protection in IIS, so that spooks me a bit.
I would like to know whether using ServerXMLHTTP is common practice
and whether it has other known limitations/problems. I'm still
learning and researching.
Any information you can provide is greatly appreciated.
Ah! Now I remember that.
I did not realize you were posting back to the same server.
There are no repercussions outside of extra resource use to using Isolated
Application Protection that i am aware of.
That post was written back in 2001 so this may no longer be an issue for
IIS6. I will run it by my fellow mvps.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Great. Thanks for the update. I am interested in hearing what your
colleagues have to say.
Thanks again.
-Thomas
Thomas Lunsford wrote on 16 mei 2007 in
microsoft.publi c.inetserver.as p.general:
>
Great. Thanks for the update. I am interested in hearing what your
colleagues have to say.
What update?
[please always quote on usenet]
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Bob Barrows [MVP] wrote:
Thomas Lunsford wrote:
>The following link is a newsgroup posting from a Microsoft employee...
http://groups.google.com/group/micro...0c25d38c8680c2
>> Our production environment is hallowed ground, so I'm leery of taking chances, especially after reading the posting in the above link. I have not yet found a good explanation of all the repercussions of Isolated Application Protection in IIS, so that spooks me a bit.
I would like to know whether using ServerXMLHTTP is common practice and whether it has other known limitations/problems. I'm still learning and researching.
Any information you can provide is greatly appreciated.
Ah! Now I remember that.
I did not realize you were posting back to the same server.
There are no repercussions outside of extra resource use to using
Isolated Application Protection that i am aware of.
That post was written back in 2001 so this may no longer be an issue
for IIS6. I will run it by my fellow mvps.
No replies to my queries as yet. However, I do want to point out that
the version of ServerXMLHTTP in that article was 4.0. Version 6 of the
MSXML Parser is the current version. Unfortunately, I do not know if the
new version corrects the problem pointed out in that article. I'm not
even certain whom I could ask, given the .Net emphasis these days.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: wk6pack |
last post by:
Hi,
I have a problem and not quite how to go about solving it.
I have a form written in asp. I wish to submit the form and have the server
return back to the same page without actually refreshing the page.
I know I could write a form, submit it and go to another page.
I've searched the web and I see something about HTTP Status code...
|
by: Ken Allen |
last post by:
I am relatively new to .Net and C#, but I hav ebeen programing in other
languages and done some COM work for a number of years. I am attempting to
understand how to map an older program architecture into .Net -- not looking
to do it at this time, just to understand how I would achieve it.
In the old environment, we had two classes, a client...
|
by: Mr Newbie |
last post by:
I was thinking about developing a workflow application yesterday and was
musing over the different approaches than one could take in restricting
specific actions on a ticket( Form ) at any said stage.
One approach I have used on other systems is to prevent the action buttons
appearing. For example, if one did not have the Role of...
|
by: Gert |
last post by:
Hi,
I have a form (server side) because of the filling of variables through the
application. But now I need to post it to an url on submit.
My .HTML form looks like this, but how to translate it to asp.net vb code?
!--<FORM ACTION="/test/test.php" METHOD=POST>-->
<form action="https://multipay.net/transaction/mpmain.php" method="post">
...
|
by: h7qvnk7q001 |
last post by:
I'm trying to implement a simple server-side form validation (No
Javascript). If the user submits a form with errors, I want to
redisplay the same form with the errors highlighted. Once the form is
correct I need to submit to another page that uses the form data.
I first tried making the form submit action= field point to the same
file....
| |
by: Jobs |
last post by:
Download the JAVA , .NET and SQL Server interview with answers
Download the JAVA , .NET and SQL Server interview sheet and rate
yourself. This will help you judge yourself are you really worth of
attending interviews. If you own a company best way to judge if the
candidate is worth of it.
http://www.questpond.com/InterviewRatingSheet.zip
|
by: Paul |
last post by:
Hi I am using the HtmlInputFile control to upload a file from a client to a
server. I have a browse to find the file on the server but need to create
the path dynamically as to were it will go based on some dropdown boxes, one
for the year and one for the month. This line saves the file so I am trying
to get the month and year from the...
|
by: =?Utf-8?B?SmltIFJvZGdlcnM=?= |
last post by:
I am trying to replace a huge chunck of code that currently I incorporate
with an #Include directive. The program rarely has to flow through that
code, so I thought it would be better if I used Server.Execute.
I found I can pass data TO the called asp file by creating an HTML <input>
and erading it after I get there.
However, I also need...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
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...
|
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...
| |
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...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
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...
| |