Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 21st, 2008, 11:18 AM   #1
beni_dude
Newbie
 
beni_dude's Avatar
 
Join Date: Apr 2008
Posts: 19
Rep Power: 0 beni_dude is on a distinguished road
Adding values from XML file to combo box

Hello
I have created an XML File with an root and in it 12 "rows".
Now I wish to bind that Data to my combo box (design time) so when the user press on the combo box he would be able to see those 12 rows.
How do I do it?
__________________
NULL is all around me!
beni_dude is offline   Reply With Quote
Old Apr 21st, 2008, 11:26 AM   #2
Freaky Chris
Professional Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 270
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: Adding values from XML file to combo box

retrieve those values from the XML files, and then add them to the combo box dynamically using Javascript.

I really don't know what im talking about today, tas been a bad day but yes. Thats how i would do it anyway lol

Chris
__________________
Steven Skiena - Algorithms
Freaky Chris is online now   Reply With Quote
Old Apr 21st, 2008, 12:02 PM   #3
beni_dude
Newbie
 
beni_dude's Avatar
 
Join Date: Apr 2008
Posts: 19
Rep Power: 0 beni_dude is on a distinguished road
Re: Adding values from XML file to combo box

Quote:
Originally Posted by Freaky Chris View Post
retrieve those values from the XML files, and then add them to the combo box dynamically using Javascript.

I really don't know what im talking about today, tas been a bad day but yes. Thats how i would do it anyway lol

Chris
I'm not big on Java Script and I'm sure there is a way to do with visual stdio server side tools (and I hope an easy one)
I tried using an Data Set to bring the Data from the XML but still I got blocked

Still thanks for the replay
__________________
NULL is all around me!
beni_dude is offline   Reply With Quote
Old Apr 21st, 2008, 12:06 PM   #4
Freaky Chris
Professional Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 270
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: Adding values from XML file to combo box

your using vb and asp's then? sorry i miss these things.

Assigning the value to the combo box should be simple, i though this was where you were having the problem. But it appears your having the problem retrieving the data from the XML files. Which unfortunatly i canot help you with as i lack experience with XML files for some unknown reason but there we go.
__________________
Steven Skiena - Algorithms
Freaky Chris is online now   Reply With Quote
Old Apr 21st, 2008, 12:14 PM   #5
beni_dude
Newbie
 
beni_dude's Avatar
 
Join Date: Apr 2008
Posts: 19
Rep Power: 0 beni_dude is on a distinguished road
Re: Adding values from XML file to combo box

Quote:
Originally Posted by Freaky Chris View Post
your using vb and asp's then? sorry i miss these things.

Assigning the value to the combo box should be simple, i though this was where you were having the problem. But it appears your having the problem retrieving the data from the XML files. Which unfortunatly i canot help you with as i lack experience with XML files for some unknown reason but there we go.
Still thanks for the fast replay and I hope that some (hmmm hmmmm) with some ASP and C# know how well help with this simple problem that I'm having (I hate to be a newbie but you have to be one for some time don't ya?)
__________________
NULL is all around me!
beni_dude is offline   Reply With Quote
Old Apr 21st, 2008, 1:00 PM   #6
Freaky Chris
Professional Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 270
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: Adding values from XML file to combo box

indeed, i still am a newbie. What code do you have so far for getting the info from the XML file?
__________________
Steven Skiena - Algorithms
Freaky Chris is online now   Reply With Quote
Old Apr 21st, 2008, 1:26 PM   #7
beni_dude
Newbie
 
beni_dude's Avatar
 
Join Date: Apr 2008
Posts: 19
Rep Power: 0 beni_dude is on a distinguished road
Re: Adding values from XML file to combo box

Quote:
Originally Posted by Freaky Chris View Post
indeed, i still am a newbie. What code do you have so far for getting the info from the XML file?
I'm not even sure that I need a code, I think that I can connect the combo box (in my case its a array of combo box that we have the same value) to the XML file using some kind of bounding data, I'm still not sure I need to do some research (or for some one else to show me how)
__________________
NULL is all around me!
beni_dude is offline   Reply With Quote
Old Apr 21st, 2008, 1:35 PM   #8
Freaky Chris
Professional Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 270
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: Adding values from XML file to combo box

you after dataTables if you google it you should get some good links that can help you.

I havn't read this but it seems like it may provide some help for you

http://www.rustemsoft.com/...

after that im afraid i can't help give it a few hours and someone who will reply will be on i would of though

Chris
__________________
Steven Skiena - Algorithms
Freaky Chris is online now   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Parsing 1.2 Gig XML File fahlyn Java 9 Jan 17th, 2008 6:09 PM
About Adding Text to Beginning of File pal C++ 3 Sep 20th, 2007 11:18 PM
Adding The Values of Pointers Darkhack C 12 Jun 28th, 2007 2:38 PM
Adding more info to a text file without erasing crawforddavid2006 C# 2 Apr 11th, 2007 2:10 PM
All Combo Values into PHP VAR kruptof PHP 4 Oct 22nd, 2006 1:08 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:36 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC