Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 2nd, 2006, 11:17 AM
Registered User
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How do I send Post data to a Html site

I know this has to be a very simple answer, but I cannot figure out how to convert an existing html form into asp.net. The form is used on my site to collect a username and password and post that to another site in order to log the user in. So far, the only thing I can figure out to do is a response.redirect statement that puts the username and password in the query string
Code:
Response.Redirect("http://www2.monstertrak.com/students/reg/main.html?q=" & Server.UrlEncode(TextBox1.Text.ToString()) & "&Server.URlEncode(TextBox2.Text.ToString()))
Of course the problem with this is that everyone can see the username and password.

I've been looking for the answer for days now, can someone please help?

 
Old June 2nd, 2006, 02:05 PM
Authorized User
 
Join Date: May 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can use session variable to translate information from page to page.






Similar Threads
Thread Thread Starter Forum Replies Last Post
how to send http post request via stored procedure kissvineet SQL Server 2000 6 August 18th, 2008 12:26 AM
using perl send data via "post" to a php web page robprell Perl 1 May 14th, 2007 05:57 AM
Forum Post Editor Used through out Site Mykre BOOK: ASP.NET Website Programming Problem-Design-Solution 0 January 16th, 2005 08:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.