M
Marcus
Hi,
I have a small piece of Javascript that executes when the Onclick
event of an ASP.NET button is clicked and then finally changes the
text value of an asp.net button control as follows:-
document.getElementById("Button1").text = "Canceled";
However, when I get back to the form load event for this page (when it
gets posted) and inspect Button1.text it shows me the buttons original
value and not what the Javascript code has changed it to. The funny
thing is that it works with an ASP.NET text box.
Can anyone give me some idea as to what is happening...?
Regards,
Marcus Wade.
I have a small piece of Javascript that executes when the Onclick
event of an ASP.NET button is clicked and then finally changes the
text value of an asp.net button control as follows:-
document.getElementById("Button1").text = "Canceled";
However, when I get back to the form load event for this page (when it
gets posted) and inspect Button1.text it shows me the buttons original
value and not what the Javascript code has changed it to. The funny
thing is that it works with an ASP.NET text box.
Can anyone give me some idea as to what is happening...?
Regards,
Marcus Wade.