468,784 Members | 1,526 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,784 developers. It's quick & easy.

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 1134
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Harvey | last post: by
10 posts views Thread by Noozer | last post: by
9 posts views Thread by eswanson | last post: by
13 posts views Thread by deko | last post: by
2 posts views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.