I have some dynamic buttons that look like this:
<input type="button" name="button" id="button" value="Click me"
onclick="window.open('somelink');" />
I need to be able to change ‘somelink’ from the code behind.
How is that done?
I know Request.Form["button"] gets the button but how to set the onlick property?
add runat=”server” and you can access that link from code behind
and if you want to change the onclick attribute then you do this in code behind