Solved

classic asp  called aspx/c#

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

Author Comment

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

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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 quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now