Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PostBack not recognized with System.Net.HttpWebRequest
Message
De
26/03/2010 11:53:14
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
PostBack not recognized with System.Net.HttpWebRequest
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01457477
Message ID:
01457477
Vues:
164
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform