Solved

classic asp  called aspx/c#

Posted on 2015-02-13
2
144 Views
Last Modified: 2015-03-12
I have a data.aspx /c# webpage that contain string like xml file.
<xml>
<Houses>
  <House>100 main street</House>
</Houses>
</xml>

And If I have classic asp webpage called abc.asp with <select></select> and I want <select> has datasource from data.aspx. Is it possible to code in classic asp on abc.asp and call/populate the data to <select></select>?
0
Comment
Question by:ITsolutionWizard
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Author Comment

by:ITsolutionWizard
ID: 40608917
And I also want to data.aspx datasource to be be updated when it is called.
0
 
LVL 33

Accepted Solution

by:
Big Monty earned 500 total points
ID: 40608937
you have to write the binding yourself, something like this:

Set oXML = Server.CreateObject("MSXML2.DomDocument.6.0") 'creating the parser object
oXML.Load("data.aspx") 'loading the XML from the file 

opts = "<option value=''>Please Choose</option>"
For Each oNode In oXML.SelectNodes("/xml/houses")
    sValue = oNode.Text
    opts = opts & "<option value='" & sValue & "'>" & sValue & "</option>"
Next

Set oXML = Nothing

if opts <> "" then
     Response.Write "<select name='houses'>" & opts & "</select>"
end if

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question