Recieve an HTTP post to an asp.net page
Recieve an HTTP post to an asp.net page
Recieve an HTTP post to an asp.net page
Recieve an HTTP post to an asp.net page
Recieve an HTTP post to an asp.net page
Recieve an HTTP post to an asp.net page Recieve an HTTP post to an asp.net page Recieve an HTTP post to an asp.net page Recieve an HTTP post to an asp.net page Recieve an HTTP post to an asp.net page Recieve an HTTP post to an asp.net page Recieve an HTTP post to an asp.net page Recieve an HTTP post to an asp.net page
Recieve an HTTP post to an asp.net page Recieve an HTTP post to an asp.net page
Recieve an HTTP post to an asp.net page
Go Back  Xtreme Visual Basic Talk > > > Recieve an HTTP post to an asp.net page


Reply
 
Thread Tools Display Modes
  #1  
Old 09-26-2007, 07:09 PM
3321thec 3321thec is offline
Freshman
 
Join Date: Apr 2007
Posts: 34
Default Recieve an HTTP post to an asp.net page


Hi guys,

I am trying to make a forgot password page for my site, and I have a regular html page (.htm) that has one form, and that form does a POST action of the one field ("email") to test.aspx.

I was wondering how i would recieve that value?

I have tried this, but it only returns "Nothing":

Code:
Dim email As String = Request.Form("email")
        Dim conn As New System.Data.SqlClient.SqlCommand("Select password From auth Where email = @emailadd", New Data.SqlClient.SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings("newsconn").ConnectionString))
        conn.Parameters.AddWithValue("@emailadd", email)
        conn.Connection.Open()
        str = conn.ExecuteScalar
Any help would be greatly appreciated!!!!!


~3321Thec
Reply With Quote
  #2  
Old 10-10-2007, 09:43 AM
shaul_ahuvaRecieve an HTTP post to an asp.net page shaul_ahuva is offline
Ultimate Contributor

Retired Leader
* Expert *
 
Join Date: Jul 2003
Location: Camp Hill, PA
Posts: 1,992
Default

Make sure method for the form is "POST" and the input field has the name "email":
HTML Code:
<form id="..." action="your aspx" method="POST">
    <input type="text" id="email" name="email"/>
</form>
If that fails to work, I would look at all the values in the Request.Params.AllKeys collection to see exactly where the value is going. You could also download something like ieHTTPheaders to see what is sent to the server when you submit the form.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Recieve an HTTP post to an asp.net page
Recieve an HTTP post to an asp.net page
Recieve an HTTP post to an asp.net page Recieve an HTTP post to an asp.net page
Recieve an HTTP post to an asp.net page
Recieve an HTTP post to an asp.net page
Recieve an HTTP post to an asp.net page Recieve an HTTP post to an asp.net page Recieve an HTTP post to an asp.net page Recieve an HTTP post to an asp.net page Recieve an HTTP post to an asp.net page Recieve an HTTP post to an asp.net page Recieve an HTTP post to an asp.net page
Recieve an HTTP post to an asp.net page
Recieve an HTTP post to an asp.net page
 
Recieve an HTTP post to an asp.net page
Recieve an HTTP post to an asp.net page
 
-->