Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PostBack not recognized with System.Net.HttpWebRequest
Message
From
26/03/2010 11:53:14
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
PostBack not recognized with System.Net.HttpWebRequest
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01457477
Message ID:
01457477
Views:
163
When I use this to post some data, the application doesn't recognize it as a postback:
            Dim loWebRequest As System.Net.HttpWebRequest

            ' Prepare Web request
            loWebRequest = System.Net.WebRequest.Create(cLoginUrl)
            loWebRequest.Method = "POST"
            loWebRequest.ContentType = "application/x-www-form-urlencoded"
            loWebRequest.ContentLength = lcPostData.Length

            ' Send the data
            loStreamWebRequest = loWebRequest.GetRequestStream()
            loStreamWebRequest.Write(loByte, 0, loByte.Length)
            loStreamWebRequest.Close()
Is there any way to have the System.Net.HttpWebRequest to send the data so the application would recognize it as a postback?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform