SV: Change the text on an aspx button



Value of Text property of the Button is kept at the server-side. And then the control is rendered on the server, markup is generated and sent to the client browser. So if you just change the markup in client browser, that isn't signaled anyway to the server so it cannot change the text of what you have sent from the client, unless you provide a mechanism to carry that value from client to server (hidden field is one such). Note that you have HTTP requests and responses going on this picture.

With hidden field is meant that you have
<input type="hidden" ID="hidden1" runat="server" />
you set it's value in javascript and read it in Page_Load at the server for example:

Button1.Text = hidden1.Value;

which should change the Button's text according to what you type to it (or set with js)

Right now, i could kiss you. (Good thing you're
far away in Finland, hehe.)

Great thanks!

--
Regards
Konrad Viltersten
--------------------------------
sleep - a substitute for coffee for the poor
ambition - lack of sense to be lazy

.