Warning: Table './planetar_drpl3/sessions' is marked as crashed and should be repaired query: SELECT u.*, s.* FROM users u INNER JOIN sessions s ON u.uid = s.uid WHERE s.sid = 'e289370fbd3c5d19fbf33c2071505a5c' in /home/planetar/public_html/blendtips/includes/database.mysql.inc on line 172

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/bootstrap.inc on line 811

Warning: Cannot modify header information - headers already sent by (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/bootstrap.inc on line 488

Warning: Cannot modify header information - headers already sent by (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/bootstrap.inc on line 489

Warning: Cannot modify header information - headers already sent by (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/bootstrap.inc on line 490

Warning: Cannot modify header information - headers already sent by (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/bootstrap.inc on line 491
Binding to a method | Drupal

Binding to a method

warning: Cannot modify header information - headers already sent by (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/common.inc on line 141.

I've wrote a simple class with one function called Sum.  The function demands two numbers and returns the sum of the two numbers.  On my form I have two textboxes to insert the numbers, and one textbox that shows the result.  Nothing really special, isn't it? Well, I use databinding in XAML to call and execute the function Sum.  So, I don't need any code behind ( except the code for the function ).  This is a simple example, but the same technique can be used to fill a combobox or listbox with an array, collection, hashtable,... You can download the tutorial and the entire source code: