473,387 Members | 1,673 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.

form post and rediirect

I was wondering how I would do a form post from one ASP.Net webform to
another webform in another ASP.Net application. I have tried this using the
httprequest object but the 2nd webform is never displayed in the browser.
Has anybody ever done this before?

Thanks in Advance,
Thomas Kirk
Nov 17 '05 #1
7 1216
Typically, you would use Server.Transfer instead of posting a form.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"Thomas Kirk" <tk***@tandt.com> wrote in message
news:eF**************@TK2MSFTNGP09.phx.gbl...
I was wondering how I would do a form post from one ASP.Net webform to
another webform in another ASP.Net application. I have tried this using the httprequest object but the 2nd webform is never displayed in the browser.
Has anybody ever done this before?

Thanks in Advance,
Thomas Kirk

Nov 17 '05 #2
No, it won't. In that case, you need to insert a regular HTML form in the
Page. A WebForm always posts back to itself.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"Thomas Kirk" <tk***@tandt.com> wrote in message
news:uW**************@TK2MSFTNGP10.phx.gbl...
I have tried server.transfer but it gives me error: "invalid path for child request". I don't think it will work when transferring to another
application. Thanks

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:uI**************@TK2MSFTNGP12.phx.gbl...
Typically, you would use Server.Transfer instead of posting a form.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"Thomas Kirk" <tk***@tandt.com> wrote in message
news:eF**************@TK2MSFTNGP09.phx.gbl...
I was wondering how I would do a form post from one ASP.Net webform to
another webform in another ASP.Net application. I have tried this
using
the
httprequest object but the 2nd webform is never displayed in the

browser. Has anybody ever done this before?

Thanks in Advance,
Thomas Kirk



Nov 17 '05 #3
Thomas,
Can you please give us more info on how you did it
Thank you

"Thomas Kirk" <tk***@tandt.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Kevin - I was able to get it working using a combination of server.transfer and context.items

Thanks for the help
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:#t**************@TK2MSFTNGP10.phx.gbl...
No, it won't. In that case, you need to insert a regular HTML form in the
Page. A WebForm always posts back to itself.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"Thomas Kirk" <tk***@tandt.com> wrote in message
news:uW**************@TK2MSFTNGP10.phx.gbl...
I have tried server.transfer but it gives me error: "invalid path for child
request". I don't think it will work when transferring to another
application. Thanks

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:uI**************@TK2MSFTNGP12.phx.gbl...
> Typically, you would use Server.Transfer instead of posting a form.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> http://www.takempis.com
> Neither a follower nor a lender be.
>
> "Thomas Kirk" <tk***@tandt.com> wrote in message
> news:eF**************@TK2MSFTNGP09.phx.gbl...
> > I was wondering how I would do a form post from one ASP.Net

webform to > > another webform in another ASP.Net application. I have tried this

using
> the
> > httprequest object but the 2nd webform is never displayed in the
browser.
> > Has anybody ever done this before?
> >
> > Thanks in Advance,
> > Thomas Kirk
> >
> >
>
>



Nov 17 '05 #4
To a WebForm outside of the current app domain? That would be a trick. It
could be done with Web Services, though, now that I think aobut it again.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"Thomas Kirk" <tk***@tandt.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Kevin - I was able to get it working using a combination of server.transfer and context.items

Thanks for the help
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:#t**************@TK2MSFTNGP10.phx.gbl...
No, it won't. In that case, you need to insert a regular HTML form in the
Page. A WebForm always posts back to itself.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"Thomas Kirk" <tk***@tandt.com> wrote in message
news:uW**************@TK2MSFTNGP10.phx.gbl...
I have tried server.transfer but it gives me error: "invalid path for child
request". I don't think it will work when transferring to another
application. Thanks

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:uI**************@TK2MSFTNGP12.phx.gbl...
> Typically, you would use Server.Transfer instead of posting a form.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> http://www.takempis.com
> Neither a follower nor a lender be.
>
> "Thomas Kirk" <tk***@tandt.com> wrote in message
> news:eF**************@TK2MSFTNGP09.phx.gbl...
> > I was wondering how I would do a form post from one ASP.Net

webform to > > another webform in another ASP.Net application. I have tried this

using
> the
> > httprequest object but the 2nd webform is never displayed in the
browser.
> > Has anybody ever done this before?
> >
> > Thanks in Advance,
> > Thomas Kirk
> >
> >
>
>



Nov 17 '05 #5
False alarm. It only appeared to be working. I am still not able to transfer
values to a different application.

"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message
news:eK**************@TK2MSFTNGP09.phx.gbl...
Thomas,
Can you please give us more info on how you did it
Thank you

"Thomas Kirk" <tk***@tandt.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Kevin - I was able to get it working using a combination of

server.transfer
and context.items

Thanks for the help
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:#t**************@TK2MSFTNGP10.phx.gbl...
No, it won't. In that case, you need to insert a regular HTML form in the Page. A WebForm always posts back to itself.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"Thomas Kirk" <tk***@tandt.com> wrote in message
news:uW**************@TK2MSFTNGP10.phx.gbl...
> I have tried server.transfer but it gives me error: "invalid path for child
> request". I don't think it will work when transferring to another
> application. Thanks
>
> "Kevin Spencer" <ke***@takempis.com> wrote in message
> news:uI**************@TK2MSFTNGP12.phx.gbl...
> > Typically, you would use Server.Transfer instead of posting a form. > >
> > --
> > HTH,
> >
> > Kevin Spencer
> > Microsoft MVP
> > .Net Developer
> > http://www.takempis.com
> > Neither a follower nor a lender be.
> >
> > "Thomas Kirk" <tk***@tandt.com> wrote in message
> > news:eF**************@TK2MSFTNGP09.phx.gbl...
> > > I was wondering how I would do a form post from one ASP.Net

webform
to
> > > another webform in another ASP.Net application. I have tried this using
> > the
> > > httprequest object but the 2nd webform is never displayed in the
> browser.
> > > Has anybody ever done this before?
> > >
> > > Thanks in Advance,
> > > Thomas Kirk
> > >
> > >
> >
> >
>
>



Nov 17 '05 #6
Thomas,

That's too bad, I was hoping you find it.
"Thomas Kirk" <tk***@tandt.com> wrote in message
news:OL***************@TK2MSFTNGP10.phx.gbl...
False alarm. It only appeared to be working. I am still not able to transfer values to a different application.

"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message
news:eK**************@TK2MSFTNGP09.phx.gbl...
Thomas,
Can you please give us more info on how you did it
Thank you

"Thomas Kirk" <tk***@tandt.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Kevin - I was able to get it working using a combination of

server.transfer
and context.items

Thanks for the help
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:#t**************@TK2MSFTNGP10.phx.gbl...
> No, it won't. In that case, you need to insert a regular HTML form in
the
> Page. A WebForm always posts back to itself.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> http://www.takempis.com
> Neither a follower nor a lender be.
>
> "Thomas Kirk" <tk***@tandt.com> wrote in message
> news:uW**************@TK2MSFTNGP10.phx.gbl...
> > I have tried server.transfer but it gives me error: "invalid path for > child
> > request". I don't think it will work when transferring to another
> > application. Thanks
> >
> > "Kevin Spencer" <ke***@takempis.com> wrote in message
> > news:uI**************@TK2MSFTNGP12.phx.gbl...
> > > Typically, you would use Server.Transfer instead of posting a form. > > >
> > > --
> > > HTH,
> > >
> > > Kevin Spencer
> > > Microsoft MVP
> > > .Net Developer
> > > http://www.takempis.com
> > > Neither a follower nor a lender be.
> > >
> > > "Thomas Kirk" <tk***@tandt.com> wrote in message
> > > news:eF**************@TK2MSFTNGP09.phx.gbl...
> > > > I was wondering how I would do a form post from one ASP.Net

webform
to
> > > > another webform in another ASP.Net application. I have tried this > using
> > > the
> > > > httprequest object but the 2nd webform is never displayed in

the > > browser.
> > > > Has anybody ever done this before?
> > > >
> > > > Thanks in Advance,
> > > > Thomas Kirk
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 17 '05 #7
Thomas,

That's too bad, I was hoping you find it.
"Thomas Kirk" <tk***@tandt.com> wrote in message
news:OL***************@TK2MSFTNGP10.phx.gbl...
False alarm. It only appeared to be working. I am still not able to transfer values to a different application.

"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message
news:eK**************@TK2MSFTNGP09.phx.gbl...
Thomas,
Can you please give us more info on how you did it
Thank you

"Thomas Kirk" <tk***@tandt.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Kevin - I was able to get it working using a combination of

server.transfer
and context.items

Thanks for the help
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:#t**************@TK2MSFTNGP10.phx.gbl...
> No, it won't. In that case, you need to insert a regular HTML form in
the
> Page. A WebForm always posts back to itself.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> http://www.takempis.com
> Neither a follower nor a lender be.
>
> "Thomas Kirk" <tk***@tandt.com> wrote in message
> news:uW**************@TK2MSFTNGP10.phx.gbl...
> > I have tried server.transfer but it gives me error: "invalid path for > child
> > request". I don't think it will work when transferring to another
> > application. Thanks
> >
> > "Kevin Spencer" <ke***@takempis.com> wrote in message
> > news:uI**************@TK2MSFTNGP12.phx.gbl...
> > > Typically, you would use Server.Transfer instead of posting a form. > > >
> > > --
> > > HTH,
> > >
> > > Kevin Spencer
> > > Microsoft MVP
> > > .Net Developer
> > > http://www.takempis.com
> > > Neither a follower nor a lender be.
> > >
> > > "Thomas Kirk" <tk***@tandt.com> wrote in message
> > > news:eF**************@TK2MSFTNGP09.phx.gbl...
> > > > I was wondering how I would do a form post from one ASP.Net

webform
to
> > > > another webform in another ASP.Net application. I have tried this > using
> > > the
> > > > httprequest object but the 2nd webform is never displayed in

the > > browser.
> > > > Has anybody ever done this before?
> > > >
> > > > Thanks in Advance,
> > > > Thomas Kirk
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 17 '05 #8

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

Similar topics

5
by: TG | last post by:
Dear PHP Group, I have two forms that are used to collect user information. The first one takes user inputted values such as fullname, city, address etc. I want these values to display in the...
3
by: sammmista | last post by:
hello experts, Plz dont treat this as another newbie query , i did my homework but still getting nowhere :( :( :( Trying to learn PHP on Fedora core 1 (PHP 4.3,MySQL,HTTPD).Unable to post data...
3
by: Harvey | last post by:
Hi, I try to write an asp query form that lets client search any text-string and display all pages in my web server that contain the text. I have IIS 6.0 on a server 2003. The MSDN site says...
5
by: Paxton | last post by:
I created an html email containing a form whose method is POST. The form is posted to an asp page for processing, but no values are retrieved. So I response.write all the Request.Form fields, and...
10
by: Noozer | last post by:
Below is some ASP, HTML and javascript. It is part of a page used to maintain a small database. This code did work at one time, but has since stopped. For some reason the data on my form is not...
9
by: eswanson | last post by:
I have a web page I need to post a file plus some other fields to it. How can I do this from a asp.net page. I know I can send individual fields to the other page, but how do I send a file to the...
8
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...
13
by: deko | last post by:
I have a basic feedback form with a submit button. After the "send" button is clicked, I want the user to be redirected to a different page that says "Your message has been sent." How do I do...
8
by: Theadmin77 | last post by:
Ok ,i have to create a page to allow entry of user information;all fields must be validated and error displayed otherwise * First Name (limit 25 characters) * Last Name (limit 25...
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: 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:
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
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...
0
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...
0
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,...
0
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...

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.