Hi,
I'm having a problem accessing a control on PostBack that is created programmatically on Page_Load. It works when the code is in the aspx page, but not when it is in a codebehind dll. Here's the code to access it:
This works if the code is within <script runat="server"> tags in the aspx page, but not from a codebehind. Weird. I know the ListBox control is being created, because I can see it on the page (and in the HTML).
Any ideas?
Thanks!!!
I'm having a problem accessing a control on PostBack that is created programmatically on Page_Load. It works when the code is in the aspx page, but not when it is in a codebehind dll. Here's the code to access it:
Code:
ListBox box = (ListBox) FindControl("ImageList");
image = box.SelectedValue;
Any ideas?
Thanks!!!