TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
amerikadan00
NA
10
0
Request.Form is Zero?
Jun 9 2004 7:00 AM
I have a problem where I'm sending post data but it doesn't seem to be reaching the destination (or at least it appears that way). I'm trying to post "postData" which is of the form "name1=value1&name2=value2" etc, but on the server side when I do Request.Form.Count it gives back a zero? I'm taking this to mean there is no data? Any ideas or suggestions? Am I not accessing the post data correctly on the server side? The code is below --------------------------------------------------------- //Client side WebClient client = new WebClient(); client.Headers.Add("Content-Type","application/x-www-form-urlencoded"); byte[] postByteArray = Encoding.ASCII.GetBytes(postData); client.UploadData("http://www.someaddress.com/Payment/IPN.aspx",postByteArray); --------------------------------------------------------- and on the server side I have Request.Form.Count; // THIS RETURNS ZERO
Reply
Answers (
2
)
Crystal reports question Please help
Posting Data from a Windows Form