Button click event handler before page load
<p>I will describe my problem  in simple way so it's not exactly what I'm trying to do but the idea is the same.Here is the problem:<br>
I create dynamic   buttons from code behind.I get some id from query string,create button with that id ,dynamic add event handler to click event,and add button to placeholder.I store the list of id-s in session and in page load method recreate these buttons and add to placeholder.One of the id-s is  CurrentId and it's also stored in session.Buttons click handler do something like this</p>

<pre><code>Button b=(Button)sender;
Session["CurrentId"]=Convert.ToInt32(b.ID);
</code></pre>

<p>In page load when I create buttons I want to set button text property different from others if <code>id==Convert.ToInt32(Session["CurrentId"])</code> when list of id-s are gotten from session.But problem is that click event handler is called after page load,and when I create buttons in page load ,CurrentId in session hasn't been channged by click event handler.Can you suggest any solution to this situation?</p>
