Hi,
I need help in posting asp .net application web form to another asp based
web app.
I have seen many examples using HttpWebRequest class but the problem is I do
not want the request back but want to post the data to another form so that
at the asp page level we can use request.form values.
Any leads would definately be appreciated.
thanks
Ab 4 1620
You can't post to a different page in ASP.NET, this is the built-in
architecture. What you can do is use Server.Transfer (newPage.aspx), which
will transfer control to the new page specified as well as the request
object, so data in the request object will be available on the new page.
"Newbie" <ne*****@bugbie .com> wrote in message
news:A7dub.7259 9$jy.29312@clgr ps13... Hi,
I need help in posting asp .net application web form to another asp based web app.
I have seen many examples using HttpWebRequest class but the problem is I
do not want the request back but want to post the data to another form so
that at the asp page level we can use request.form values.
Any leads would definately be appreciated.
thanks
Ab
<form id="programmati cID"
method=POST | GET
action="srcpage URL"
runat="server" >
Other controls, input forms, and so on.
</form>
--
ÁõÃô
Rustle Liu
"Newbie" <ne*****@bugbie .com> дÈëÏûÏ¢ news:A7dub.7259 9$jy.29312@clgr ps13... Hi,
I need help in posting asp .net application web form to another asp based web app.
I have seen many examples using HttpWebRequest class but the problem is I
do not want the request back but want to post the data to another form so
that at the asp page level we can use request.form values.
Any leads would definately be appreciated.
thanks
Ab
In .NET you can set the form's action to whatever you like, it won't post to
that page. Server forms submit to themselves, no matter what. This is the
fundamental architecture of ASP.NET and the basis for PostBack & ViewState.
"ÁõÃô" <ru********@hot mail.com> wrote in message
news:eB******** ******@TK2MSFTN GP09.phx.gbl... <form id="programmati cID" method=POST | GET action="srcpage URL" runat="server" > Other controls, input forms, and so on. </form> -- ÁõÃô Rustle Liu "Newbie" <ne*****@bugbie .com> дÈëÏûÏ¢
news:A7dub.7259 9$jy.29312@clgr ps13... Hi,
I need help in posting asp .net application web form to another asp
based web app.
I have seen many examples using HttpWebRequest class but the problem is
I do not want the request back but want to post the data to another form so that at the asp page level we can use request.form values.
Any leads would definately be appreciated.
thanks
Ab
Just skip the ASP.NET's post-back mechanism.
Using the traditional Querystring way.
On the submit button onclick event, build the querystring
<script language="javas cript" for="button1" event="onclick" >
{
var strQuery = "targetURL.asp? Field1=" + Field1.value + "&Field2=" + Field2.value;
window.navigate (strQuery);
}
</script>
Bin
MCP
"Newbie" <ne*****@bugbie .com> wrote in message news:<A7dub.725 99$jy.29312@clg rps13>... Hi,
I need help in posting asp .net application web form to another asp based web app.
I have seen many examples using HttpWebRequest class but the problem is I do not want the request back but want to post the data to another form so that at the asp page level we can use request.form values.
Any leads would definately be appreciated.
thanks
Ab This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: anon |
last post by:
Post Forwarding question......
For this control below,
<asp:Button runat="server" PostTargetUrl="page2.aspx" />
The Attribute: PostTargetUrl="page2.aspx"
Is this PostTargetUrl Attribute going to be available in the <a> and Html
Controls as well as opposed to just the <asp:Button> control?
|
by: DaveFash |
last post by:
Posting variables from an HTML FORM, via
the Request.Form function on the receiving
ASP page is great.
But how can you POST a Form variable to
an ASP page -- without a human pushing a
Submit button?
An ASP page that can decide when to POST
and send the Form vaiables, but out without a
|
by: Magnus |
last post by:
Hi!
This is my problem:
I want to go from page1 to page2,
and to get all the form variables from page1
to page2.
I have turned the viewstate and the sessionstate off,
and i really just want to get these variables the
|
by: ejs |
last post by:
Please read the entire reponse, hopefully this clears up your questions.
The data used that needs to go into the batchupload page comes from a
server. My problem is that currently I write a file to the server and then
the user has to pick this file and send it up to the batchupload page. The
batchupload page is not one of our page, instead it is another company's
page. This is there interface to do batch processing. We have no control...
|
by: Stu |
last post by:
Hi,
When I try and use Javascript to post page form data from one aspx page to
another I get the error 'Unable to validate data. '. I am not trying to read
the data using web controls I am trying to read using the request object
(Request.Form("FieldName")).
I have had this working before but get this error when trying to reproduce
the page in a new project. Anyone any ideas?
| |
by: Newbie |
last post by:
Hi,
I need help in posting asp .net application web form to another asp based
web app.
I have seen many examples using HttpWebRequest class but the problem is I do
not want the request back but want to post the data to another form so that
at the asp page level we can use request.form values.
Any leads would definately be appreciated.
|
by: Esa |
last post by:
Hi,
I'm having problems with one strange web system where submitting an
application and making queries about its handling status require a series of
form submits and response parsing - all in HTML. Luckily other interfaces
are "modern" using xml file up/downloads without any difficulties...
I'm not very used to .NET-environment yet, so I'd appreciate some clues
about the classes I should use to implement this stupid interface - stupid...
|
by: Peter2 |
last post by:
Hi,
I have a problem posting non-ASCII characters in FORM fields between classic
ASP and ASP.NET. I use a fully patched Windows 2000 Advanced Server with .net
2.0 and visual Studio 2005 installed, IIS, IE6 etc ...
When an *.ASPX page receives the post, it drops non-ASCII characters, for
example it drops character é from word Montréal. Specifying explicit encoding
on ASP/ASPX page doesn't help. The encoding works without doing anything...
|
by: Peter Afonin |
last post by:
Hello,
I have a form with several buttons, and I need to post this data to several
different applications. In ASP.NET 1.1 it was quite easy - I just used HTML
controls (text or hidden), then assigned the action to each button on
Page_Load event:
Me.ibPayWM.Attributes.Add("onclick",
"noPostBack('https://merchant.webmoney.ru/lmi/payment.asp');")
Me.ibPayRx.Attributes.Add("onclick",
|
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...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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();...
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |