Sailesh Ganeshan wrote:thanks eric !
But I know that, what I wanted to know is to set some kind of flag so that its possible to find out whether the page is viewed after clicking Create button, or the View/Edit button. I thought of handling it in the page level, rather than going into the class level. Thanks for your reply.
Why would you be using JavaScript to hide this button when your backend should be responsible for it? Is the page not posting back to the server?
Eric