Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 23rd, 2006, 02:57 AM
Registered User
 
Join Date: Feb 2006
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Convertion

can any body convert the following code into C#. i have to use same code in my ASP.NET page.



<% Language=VBScript %>

<%
Response.CharSet = "utf-8"
session.CodePage = 65001


' Indicates the location where the HTTP request is to be sent.
Dim requestLocation


requestLocation = http://localhost/ABC.xyz



' Create an XML object
Set objXMLdoc = Server.CreateObject ("Microsoft.XMLDOM")

objXMLdoc.async = False
objXMLdoc.validateonParse = False
objXMLdoc.preserveWhiteSpace = False
objXMLdoc.resolveExternals = False


Dim xmlHttp
Set xmlHttp = Server.CreateObject("Microsoft.XMLHTTP")

objXMLdoc.LoadXML(Request("XMLData"))


xmlHttp.open "POST", requestLocation, False

xmlHttp.send objXMLdoc.xml

Dim inputXMLDoc
Dim returnValue
set inputXMLDoc = Server.CreateObject("Microsoft.XMLDOM")
returnValue = inputXMLDoc.LoadXML(xmlHttp.ResponseText)



Thanks in advance


  #2 (permalink)  
Old March 23rd, 2006, 02:53 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

http://www.developerfusion.co.uk/uti...sharptovb.aspx



Similar Threads
Thread Thread Starter Forum Replies Last Post
html to xml convertion using xslt moshaik BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 2 November 24th, 2008 10:33 AM
Convertion of CRect* to ULONG arun.sharma.kumar Visual C++ 1 June 5th, 2007 03:33 AM
pdf to word convertion amartya_mandal ASP.NET 1.0 and 1.1 Professional 2 April 17th, 2007 02:27 PM
XSLT convertion help mwells XSLT 3 February 2nd, 2007 10:00 AM
Convertion using Masks rtr1900 Classic ASP Databases 2 November 29th, 2005 06:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.