Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   XML (http://www.programmingforums.org/forum28.html)
-   -   Adding values from XML file to combo box (http://www.programmingforums.org/showthread.php?t=15671)

beni_dude Apr 21st, 2008 11:18 AM

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?

Freaky Chris Apr 21st, 2008 11:26 AM

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

beni_dude Apr 21st, 2008 12:02 PM

Re: Adding values from XML file to combo box
 
Quote:

Originally Posted by Freaky Chris (Post 144238)
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

Freaky Chris Apr 21st, 2008 12:06 PM

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.

beni_dude Apr 21st, 2008 12:14 PM

Re: Adding values from XML file to combo box
 
Quote:

Originally Posted by Freaky Chris (Post 144242)
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?)

Freaky Chris Apr 21st, 2008 1:00 PM

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?

beni_dude Apr 21st, 2008 1:26 PM

Re: Adding values from XML file to combo box
 
Quote:

Originally Posted by Freaky Chris (Post 144245)
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:|)

Freaky Chris Apr 21st, 2008 1:35 PM

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


All times are GMT -5. The time now is 3:54 PM.

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