Re: Change the text on an aspx button
- From: "K Viltersten" <tmp1@xxxxxxxxxxxxxx>
- Date: Mon, 19 May 2008 07:40:13 +0200
you should change the text on the server as controls aregenerated from the server to the client. Therefore youshould ignal to the server that it should change text towhat you need in this scenario (post it to the server
for example with a hidden form field)
Perhaps i'm doing it a strange way. I'm changing the text
of the LinkButton using JavaScript on the client and as i
post it back, i try to read the text using the following.
protected void Button1_Click(Object sender, EventArgs e) {
this.Button1.Text = this.Button1.Text + "!"; }
I notice that the "!" gets added at every time so the text
on the button gets more and more exlamation marks. Still,
i figure it should be possible to change the original text
of the button to something else and then send it back to
server. For some reason, the server only remembers the
text sent out at previous attempt.
And just to be perfectly clear - i can use a button as such
a field, right? Or are we taking about a specialized, hidden
componenet here?
--
Regards
Konrad Viltersten
.
- Follow-Ups:
- Re: Change the text on an aspx button
- From: Munna
- Re: Change the text on an aspx button
- References:
- Change the text on an aspx button
- From: K Viltersten
- Re: Change the text on an aspx button
- From: Teemu Keiski
- Change the text on an aspx button
- Prev by Date: Overly country sales figures on world map
- Next by Date: MasterPage
- Previous by thread: Re: Change the text on an aspx button
- Next by thread: Re: Change the text on an aspx button
- Index(es):
Loading