Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML 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 November 10th, 2004, 03:57 PM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to XueXue
Default XML dataisland / sql

Okay, first post so sorry if this is a sore topic.

Recently I have been tasked with creating a button in a .asp page(stuff.asp?formMode=xml) that redirects back to the original page (stuff.asp) so that if a user made a mistake it will reset the values of the drop down box (that works already) and set the value in the box to what was previously chosen.

The original stuff.asp uses a sql server to populate a drop down list that is used to choose a field (like enddate) an operator (is = to) and a value (10102004) and then it uses the entered data (chosen from the drop down list) and puts that in an xml dataisland so that the info is processed client side.

Is it possible to pull the data from the xml dataisland backwords? like (just like stated above) if I screw up and want to change the operator to (!=) can I repopulate the drop down box from the xml dataisland (ie setting the value of field to enddate, operator to =, and value = 10102004 and use sql to add the others ( !=, <, >, etcetera)



-Todd



 
Old November 11th, 2004, 05:21 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I probably don't entirely understand but you can bind a listbox to an xml data island. See the docs online

--

Joe (Microsoft MVP - XML)
 
Old November 11th, 2004, 02:25 PM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to XueXue
Default

Thanks for the link, i'll check it out.

-Todd






Similar Threads
Thread Thread Starter Forum Replies Last Post
Relational SQL Data to XML - Vet SQL/ASP - New XML JimiTheJett XML 1 December 4th, 2008 06:06 PM
SQL Server 2005 XML: FOR XML PATH -> cdata? stoves SQL Server 2005 1 July 8th, 2008 02:40 AM
SQL to XML toddw607 SQL Server 2000 1 March 20th, 2007 03:39 AM
XML into SQL h3x09 C# 1 February 9th, 2006 10:19 AM
DataIsland + Sort + link on JavaScript luisvizuete XSLT 1 November 5th, 2003 02:11 PM





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