473,385 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to post XML to aspx page?

I have a page that posts XML from a textbox on the UI to another aspx page.
This is the code that's currently working when the project does not have
"Option Strict" turned on, but I'd like it on, so I'm trying to clean up the
old code. Can someone help me .net'ify this code? It's the very top line
(MSXML2.ServerXMLHTTP30) that tells me it's undefined, and I cannot find a
class library that it's in. Should this be an HttpWebRequest instead?
THANKS!

Dim otestPosting As New MSXML2.ServerXMLHTTP30
Dim lResolve As Integer
Dim lConnect As Integer
Dim lSend As Integer
Dim lReceive As Integer

' Set timeout parameters for XML connection
lResolve = 60 * 1000
lConnect = 30 * 1000
lSend = 30 * 1000
lReceive = 30 * 1000

otestPosting.setTimeouts(lResolve, lConnect, lSend, lReceive)
otestPosting.open("POST", "http://myurl.com", False)
otestPosting.send(myTextbox.Text)
txtReturnXML.Text = otestPosting.responseText
Nov 29 '05 #1
2 2788
Barb wrote:
I have a page that posts XML from a textbox on the UI to another aspx
page. This is the code that's currently working when the project
does not have "Option Strict" turned on, but I'd like it on, so I'm
trying to clean up the old code. Can someone help me .net'ify this
code? It's the very top line (MSXML2.ServerXMLHTTP30) that tells me
it's undefined, and I cannot find a class library that it's in.
Should this be an HttpWebRequest instead? THANKS!


See http://tinyurl.com/95hpt. That's a FAQ ;-)

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 29 '05 #2
Thank you! That's exactly what I need.

"Joerg Jooss" wrote:
Barb wrote:
I have a page that posts XML from a textbox on the UI to another aspx
page. This is the code that's currently working when the project
does not have "Option Strict" turned on, but I'd like it on, so I'm
trying to clean up the old code. Can someone help me .net'ify this
code? It's the very top line (MSXML2.ServerXMLHTTP30) that tells me
it's undefined, and I cannot find a class library that it's in.
Should this be an HttpWebRequest instead? THANKS!


See http://tinyurl.com/95hpt. That's a FAQ ;-)

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de

Nov 29 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Phillip N Rounds | last post by:
I have a webform, from which I have to submit info to another site. Their instructions are to have a html form, with the following as the submit: <form method="post"...
1
by: Lewis | last post by:
Hi, Im having a problem with an aspx page that I'm building (and rather urgently needing to complete!). Situation is this... Im transforming some XML using an XSLT which builds an HTML form...
2
by: Matt | last post by:
When we submit the form data to another page, we usually do the following: <form action="display.aspx" method="post"> will submit the form data and open display.asp in the current browser ...
1
by: Gabriele Zannoni | last post by:
Hi to all, I have an aesthetic problem to solve. I'm working on the managing part of a site. Some pages can be called with a query string like this: http://mysite.com/manage.aspx?code=300 The...
5
by: Vishal | last post by:
Hello, I already asked this question in the ASP.NET forums, but no help came. So I am hoping that somebody can help me out. This is really very URGENT me. For my e-commerce application, I...
4
by: TR | last post by:
MyPage.htm has <FORM ACTION="Register.aspx" METHOD="POST">. Where does Register.aspx reference the values passed to it via the Post method in MyPage.htm? Thanks in advance. TR
4
by: COHENMARVIN | last post by:
I'm a asp programmer starting out with asp.net. I understand that an asp form can post to its own page and that this allows validation of form fields on the server. But suppose all the controls...
12
by: Britney | last post by:
Hi guys, in my default.aspx file, I have following code. when I go to browser, I enter values in both textboxs, then I hit submit Button, however, it didn't go to page2.aspx. instead, it was...
0
by: WIWA | last post by:
Hi, I want to login to a password protected website and fetch the content of the page behind. I have based my code on http://weblogs.asp.net/jdennany/archive/2005/04/23/403971.aspx. When I use...
3
by: Jag | last post by:
Hi I am facing a strange issue. I have 3 ASP pages in the default website 1. auth.aspx <html> <body>
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.