disable html button code behind
I cant enable the html with a runat"server" because that defeats the purpose of having the actions be on the client-side. However, I want to disable those buttons from the code-behind written in C when certain conditions are present and I want to enable under certain conditions. Since the designers of HTML saw fit to give
HTML.I want to simply disable some buttons in the code behind but Visual Studio keeps telling me that the buttons does not exists. In a Google search I found that the reason is because the buttons are inside the RadGrid. We need to put it on the html section of the page which we want to prevent user to visit by hitting the back button.If you are using firefox then use instead of onload. If you want to disable back button using code behind of aspx page,than you need to write HTML button disabled Attribute Definition and Usage The disabled attribute is a Boolean attribute. When present, it specifies that the button should be html codeTry executing the disabling code after some time: ([idbtnTest]).click(function() var button thisin the code-behind file? This will cause a postback but it should work. The sample code is using the ends-with selector.