473,387 Members | 3,684 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,387 software developers and data experts.

Posting ASP .Net web form to another asp page

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
Nov 18 '05 #1
4 1611
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.72599$jy.29312@clgrps13...
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

Nov 18 '05 #2
<form id="programmaticID"
method=POST | GET
action="srcpageURL"
runat="server" >
Other controls, input forms, and so on.
</form>
--
ÁõÃô
Rustle Liu
"Newbie" <ne*****@bugbie.com> дÈëÏûÏ¢ news:A7dub.72599$jy.29312@clgrps13...
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

Nov 18 '05 #3
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********@hotmail.com> wrote in message
news:eB**************@TK2MSFTNGP09.phx.gbl...
<form id="programmaticID"
method=POST | GET
action="srcpageURL"
runat="server" >
Other controls, input forms, and so on.
</form>
--
ÁõÃô
Rustle Liu
"Newbie" <ne*****@bugbie.com> дÈëÏûÏ¢ news:A7dub.72599$jy.29312@clgrps13...
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


Nov 18 '05 #4
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="javascript" 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.72599$jy.29312@clgrps13>...
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

Nov 18 '05 #5

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

Similar topics

6
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...
10
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...
5
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...
2
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...
2
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...
4
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...
2
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...
2
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,...
4
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.