Solved

classic asp  called aspx/c#

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

623 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