Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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
 
Old April 8th, 2005, 02:37 PM
Authorized User
 
Join Date: Jan 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default XMLHTTP with asp.net

Does anyone know where to find a good example of using XMLHTTP with C#? All the examples I have found are using ASP...

Or maybe someone can think of another helpful solution to my problem. I made an autocomplete script for an asp.net text box which populates a javascript array with a bunch of values from a dataset. There are prolly 5,000 records and the page takes forever to load. I want to use javascript to disable the textbox, load the array into the page using XMLHTTP and then enable the textbox when it is done loading, but make the page usuable while loading the big chuck o'data.

yeah!

-- Jenni
 
Old April 9th, 2005, 04:53 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Jenni,

From what I gather from you post it shouldn't matter what the example they have is in. There will be two pieces to what you are building. You have to write the javascript that will use the XmlHttp object on the client to retrieve the data and you need to create the ASP.NET page to provide the data. The sample from ASP should be enough to provide the client side stuff as it needn't be much different than it is already because it should be mostly javascript. The server side portion just needs a little convertion to work in C#.

-Peter
 
Old April 10th, 2005, 11:08 AM
Authorized User
 
Join Date: Jan 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Peter,

I guess you are right, I just assumed that a different methadology would go into implimenting xmlhttp on a aspnet page.

How would you instatiate an xmlhttp object in dotnet, similar to this line of code does in asp:

Server.CreateObject("MSXML2.ServerXMLHTTP")

I couldn't find a namespace that contains any xmlhttp functality in the .net framework.

-- jq

 
Old April 10th, 2005, 03:14 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Because there isn't any. There is the System.Xml namespace in .NET. But you don't need that (well, at least from the end it seems you are worrying about. You need to create the XMLHTTP object on the client side to parse the xml you'll get from the server. You can build the XML at the server any way you wish. You'll want to use the classes in the System.Xml namespace to do that.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Posting XML to an ASP page using XMLHTTP Kells Classic ASP XML 5 April 24th, 2014 05:54 AM
post xml using xmlhttp in vb.net datakix Classic ASP XML 4 August 7th, 2009 05:31 AM
post xml using xmlhttp in vb.net datakix VB.NET 3 December 21st, 2004 01:31 PM
xmlhttp requesting data from a dll in .net millennium Classic ASP XML 0 June 23rd, 2004 07:36 AM





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