Ok, details:
I have this page, ASP, and I put on it a datagrid, several DropDownLists, and lots of buttons.
I have my initiliazing code, like setting a DDL.SelectedIndex to the first item, making some buttons visible and other invisible, etc.
I put a call to MyInit() inside the provided OnInit() routine to do the above.
However, as I found by single-stepping through the program, OnInit() is called when I try to do anything in my page: pressing a button, selecting a DDL item, paging the DataGrid, etc.
I don't want to reinitialize everything when the user, say, wants to scroll down the DataGrid or press a Button on the exisiting data.
I tried to move my MyInit routine elsewhere, like under Page_Load or OnUnload, but the same thing happens, and I have no way to tell when the page is really starting up or just a button was pressed.
There's probably a simple flag to this, but I couldn't find it.
thx,
ojb
[EMAIL REMOVED]