473,378 Members | 1,382 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

bind GUI elements to xml

hi all
I have a small application assembled from
C# winForm client side (few of them)
C# webService at the server side

I'm using xml file to transfer the GUI information from client to server
For Example in the client window there are 3 text box's and one button
Text boxes are "first num" , " second num" and "sum"
And "calc" button

So when the user click the "calc" button , the winForm window send the GUI
xml to the server , and the server parses the xml file and fill in the
records

Xml example :

<Gui_items>
<item>
<textbox name="first
num">30</textbox>
</item>
<item>
<textbox name="second
num">50</textbox>
</item>
<item>
<textbox
name="sum"></textbox>
</item>
</Gui_items>

the server response will be :

<Gui_items>
<item>
<textbox name="first
num">30</textbox>
</item>
<item>
<textbox name="second
num">50</textbox>
</item>
<item>
<textbox
name="sum">80</textbox>
</item>
</Gui_items>

Then the winForm client get the response XML and parses it ,
All GUI item's are filed in to the GUI controls

This only simple example, the real client window is much complex,
I'm using labels and label's color changing

Currently I'm parsing the XML file using System.Xml
Is there any way I can bind the GUI elements to this XML and make it easier
for me to develop it ?
Is there any way I can use dataset's and have the same goal ?

Please post any comment you have
Thank you very much

Sharon
Dec 13 '05 #1
1 2307
Sharon wrote:
hi all
I have a small application assembled from
C# winForm client side (few of them)
C# webService at the server side

I'm using xml file to transfer the GUI information from client to server
For Example in the client window there are 3 text box's and one button
Text boxes are "first num" , " second num" and "sum"
And "calc" button

So when the user click the "calc" button , the winForm window send the GUI
xml to the server , and the server parses the xml file and fill in the
records

Xml example :

<Gui_items>
<item>
<textbox name="first
num">30</textbox>
</item>
<item>
<textbox name="second
num">50</textbox>
</item>
<item>
<textbox
name="sum"></textbox>
</item>
</Gui_items>

the server response will be :

<Gui_items>
<item>
<textbox name="first
num">30</textbox>
</item>
<item>
<textbox name="second
num">50</textbox>
</item>
<item>
<textbox
name="sum">80</textbox>
</item>
</Gui_items>

Then the winForm client get the response XML and parses it ,
All GUI item's are filed in to the GUI controls

This only simple example, the real client window is much complex,
I'm using labels and label's color changing

Currently I'm parsing the XML file using System.Xml
Is there any way I can bind the GUI elements to this XML and make it easier
for me to develop it ?
Is there any way I can use dataset's and have the same goal ?

Please post any comment you have
Thank you very much

Sharon


If I remember correctly, you can pass object through a web service. So
why not make a business object, load it up with the information pass it
over. This will remove the overhead of the xml processing as well as
the xml overhead text.

Chris
Dec 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: P G | last post by:
I hope this is on topic here. I have a problem compiling a simple example of the use of boost::bind. Please take a look at the program below. ...
6
by: Andreas Thiele | last post by:
Hi, I'm very new to php. In my current code I'd like to bind variables to the values of a simply (only indexed by numbers http://www.php-center.de/en-html-manual/language.types.array.html])...
1
by: Harry | last post by:
I want to bind three elements of an seven element arraylist to a data grid. I cannot find an example of complex binding specific fields of an array list to a datagrid. Any examples would be...
7
by: Dan | last post by:
Very newbie question here: Any suggestions on how to bind an XML file to a combobox and datagrid? I've had no problem reading the data in a datagrid. But the combobox is another story. I...
4
by: Greg Linwood | last post by:
I am wondering what the best approach to binding XML data to an asp:Table from the Page_Load event in a code behind module? I'm using VB.Net and initially approached this by adding a table to the...
0
by: cipcip | last post by:
hi is there a way to bind a menu control with a dataset without get this error? System.InvalidOperationException: HierarchicalDataBoundControl only accepts data sources that implement...
1
by: cipcip | last post by:
hi, is there a way to bind a menu control with a dataset without get this error? System.InvalidOperationException: HierarchicalDataBoundControl only accepts data sources that implement...
1
by: =?Utf-8?B?Rml4ZXI=?= | last post by:
There is Content Management System. In it on administrator's side dinamic number of "body" (which showing in FCKeditors) elements for generating page Code...
0
by: sean worlock | last post by:
Hello all, I have googled like crazy for this with no sucess! I have a dataset containing a table with the following fields Table===Widths ---------------------------------------------...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.