Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2006

Tip: Looking for answers? Try searching our database.

ASP.NET Refirect with POST

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thom Little - 30 Nov 2006 22:22 GMT
In ASP.NET 2.0 C# I need to redirect to an .ASP or .HTML page and include
POST data (i.e., like a form.  The form data is changed dynamically by the
C# page.

Can anyone point me to an example?  I think it is ...

Response.AddHeader( ... );
Response.Redirect( ... );

If it is, what is the Header designation?  If it isn't, how do I do it?

(The reason for doing this instead of "get" is to hide the parameters from
the "casual" visitor.

Signature

--  Thom Little  --  www.tlanet.net  --  Thom Little Associates, Ltd.
--

Scott M. - 01 Dec 2006 03:03 GMT
Use Server.Transfer(url)

> In ASP.NET 2.0 C# I need to redirect to an .ASP or .HTML page and include
> POST data (i.e., like a form.  The form data is changed dynamically by the
[quoted text clipped - 9 lines]
> (The reason for doing this instead of "get" is to hide the parameters from
> the "casual" visitor.
Thom Little - 01 Dec 2006 16:46 GMT
The websites are unfortunately on different servers.  This rules out
Server.Transfer( ).

Signature

--  Thom Little  --  www.tlanet.net  --  Thom Little Associates, Ltd.
--

> Use Server.Transfer(url)
Scott M. - 03 Dec 2006 23:35 GMT
Why does this rule out ServerTransfer()?  The current data will be posted to
whatever url you pass it to (even if that is on a different server).

> The websites are unfortunately on different servers.  This rules out
> Server.Transfer( ).
>
>> Use Server.Transfer(url)
Thom Little - 05 Dec 2006 22:54 GMT
I have not been able to transfer to another server as you suggest.  There
are a number of references that state that it is limited to the same server.
One of them is ...

http://www.developer.com/net/asp/article.php/3299641

... have you seen an example somewhere that shows this assertion to be
incorrect?  (It would be wonderful if you have.)

Signature

--  Thom Little  --  www.tlanet.net  --  Thom Little Associates, Ltd.
--

> Why does this rule out ServerTransfer()?  The current data will be posted
> to whatever url you pass it to (even if that is on a different server).
Dhanraj K.S - 29 Dec 2006 14:15 GMT
There are two ways you can do that,

1. You can create an object for WebRequest and Create a Name Value
collection for the values and post the data to that external URL
2. Use Response.Write / Script Manager of ASP.NET 2.0 to submit it through
simple form submission.

I have just given you an idea, Let me know if you know more details on how
to do it ?

Thanks
Dhanraj

> In ASP.NET 2.0 C# I need to redirect to an .ASP or .HTML page and include
> POST data (i.e., like a form.  The form data is changed dynamically by the
[quoted text clipped - 9 lines]
> (The reason for doing this instead of "get" is to hide the parameters from
> the "casual" visitor.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.