Hello. I'm new to creating controls in vs.net, so this has to be a dumb question. I created a control with a few dropdown boxes and an image button. When I click the image button, I want to execute code to read the dropdown boxes and do some stuff. I want this code to run BEFORE the Page_Load() on my main page. I put it in several places but they don't seem to work. Here's where I added the code:
1) Sub New() - nothing is really available yet
2) Page_Load(), imgbutton_click() - this works fine, but it runs AFTER the Page_Load in the main page. I want it to run first.
3) imgbutton_load() and imgbutton_init() - My dropdown boxes can't seem to be read here. drpDown1.SelectedItem = -1, but I know it should be a different number.
How can I run the code before the Page_Load in the main page and still read my dropdown boxes????????
Thanks for your help!!!
SteveS
1) Sub New() - nothing is really available yet
2) Page_Load(), imgbutton_click() - this works fine, but it runs AFTER the Page_Load in the main page. I want it to run first.
3) imgbutton_load() and imgbutton_init() - My dropdown boxes can't seem to be read here. drpDown1.SelectedItem = -1, but I know it should be a different number.
How can I run the code before the Page_Load in the main page and still read my dropdown boxes????????
Thanks for your help!!!
SteveS