About maintaining Controls state
I am taking input image in this way and making it invisible on form load
<input type="image" id ="img" name="img" style="display:none;" runat="server" src="../Images/calendar.jpg" " />
On certain condition i am making it visible/Invisible through javascript
After making it visible whenever i am clicking server side button or whenever form is getting postback it is getting invisible again