ASP.NET , C#
I have the following event handler set in a LinkButton control, which I placed into Page_Load.
I want to use the CommandEventHandler(LinkButton_Command) value after PostBack back in
Page_Load to filter a query, which eventually updates the same lbtn property. Needless to say,
I can't seem to be able to get the CommandEventHandler(LinkButton_Command) value back into Page_Load.
lbtn.CommandArgument = i.ToString();
lbtn.Command += new System.Web.UI.WebControls.CommandEventHandler(LinkButton_Command);
1) Click on a LinkButton control
2) An post-back occurs
3) The Page_Load event is fire
4) The LinkButton_Command event is handled
As you can see, you can't get the value from Page_Load, because it hasn't happened yet.
Bob