mardi 18 octobre 2016

Simple C# text adventure in an ASP.NET Web Form

So in my Web Development course we started learning C# and how to use ASP.NET.

I'm still new to C# and don't completely understand the syntax required to write this code. All I am looking to do is create a very simple 'Yes or No' based text adventure where the user is asked a question, they press the 'Yes' or 'No' button, and then the next question is asked and so on. I have a simple layout for the page with the two buttons and a label for the questions to go through.

I need help understanding how to properly write the if else statements and how to trigger the event to populate the questions label.

My workspace with the Web form layout

Web form source code

Aucun commentaire:

Enregistrer un commentaire