Front end Changes on backend code placement
<p>I have been at this for a little while until I realized that I can't do front end stuff in the </p>

<pre><code> page_load
</code></pre>

<p>There are no changes reflect. The following demonstrates the code which executes successfully but does not influence the front end</p>

<pre><code>    if (!(X.IsAjaxRequest || Page.IsCallback) &amp;&amp; Request["type"] == null)
    {
        window.Show();
        fsm.executeCurrentState();
    }
    else if (Request["type"] != null)
    {
        window.Show();
        switch (Request["type"])
        {
            case "PopUp":
                {
                    windowPopUp.AutoLoad.Url = "http://google.com";
                    windowPopUp.AutoRender = true;
                    windowPopUp.Show();

                    uLabel.Text = "blah";

                    break;
                }
        }
    }
    else
    {

        fsm.switchState((int)states.initializeState);
        fsm.executeCurrentState();
    }
</code></pre>

<p>This is using a front end Ajax request:</p>

<pre><code>    function sendPopRequest(link) {
        $.ajax({
        url: location.href,
        type: "POST",
        data: { type : 'PopUp', URL : link }
        }); 

    }
</code></pre>

<p>I can verify that his succesfully passes the variables onto the front end. What I find strange is that it returns false for</p>

<pre><code>   X.IsAjaxRequest || Page.IsCallback
</code></pre>

<p>How would I go about making sure this code actually has influence on the front end? I am using EXT.NET which does callbacks to influence its front end using events. The element I am using however cannot be have an event function attached to it.</p>
