Button does not retain visible property
I've a asp:button which is set to visible="false" in .aspx.this is on a search page.in code behind if search returns >0 records the button is set to visible=true.
funny thing thats happenin here is first time when the search returns some records & the button is visible, but on next search when records returned is zero, the button is still visible, unless i do an explicit visible=false in code behind.is the button not supposed to take the default proprety that is set in .aspx on postback?
|