Solved

classic asp  called aspx/c#

Posted on 2015-02-13
2
145 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

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CSS question 16 63
ASP.NET Load html part first, then start function 2 40
Convert a string to date 4 40
.NET universe documentation poster 2 25
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…

751 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