Main Site Documentation

Need help with web server


I want to make a web server to control LEDs.
the LEDs are controlled with button in the html page.

<form action="" method="post">
        <input type="button" name="Test1" value="Test1" />
        <input type="button" name="Test2" value="Test2" />

i try to follow the example in Fez Internet of Things Book, but i don’t know the C# code if i have 2 buttons.
can anyone help me?

  • sorry, my english is not good but i hope you understand -


The is another book, “beginners guide” to help you understand C# if you want.


Hi @ wisnu
There is not an easy answer to your question. Here are the steps you need to take:
[ol]Parse the “post” data sent by your browser.
Determine which button was clicked by examining the post data.
Execute the appropriate code based on which button was clicked.[/ol]

You could study the web server code I wrote by following the link on this forum post:

The code is complicated, but you can always ask questions on this forum if there is something you don’t understand.


Thank’s jasdev
I think I will need more time to understand the code. I really appreciate your help.