Hi guys. I'm currently trying my hand at constructing a simple game using ASP.NET 3.5, with C# as my code-behind language. Things were going great until I tried tying in a PlayerCharacter's attack method to the Click event of a simple Button server control. The attack method works properly, but it isn't invoked until after the output is rendered to the screen. This makes it so the output on the screen is ALWAYS 1 turn behind the actual current state of combat. I've tried linking the attack method to the Button both in Page_Init(), and in Page_PreLoad(), but neither fixes the problem.
Is there a way to force the attack method to be invoked before output is rendered? My .aspx and .aspx.cs code are below:
.aspx-
1 <%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/GitS.master" CodeFile=&qu ...
Go to the complete details ...