Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing button's caption on click
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00752305
Message ID:
00752329
Vues:
11
Thomas,

Ok, seems to be easy. Of course, I need Java Script, since we can not use VBScript on client.

Also how can I specify tooltip and statusbar (as here at UT, for example)?

Another question:
How do you change order in the recordset? And how can you do it by clicking on the header?

Thanks in advance again.

>>Hi everybody,
>>
>>Couple of questions from newbie:
>>
>>1) How can I change functionality and caption of the button, after it's clicked. E.g. Add to Cart after I click on it should change to Remove from Cart
>>
>>2) How do you set tooltips and statusbartext in ASP? (HTML)
>>
>>Thanks in advance.
>
>Nadya;
>
>Here is some of what you asked. We use VB Script as you can see. If you need Java Script let me know
>
>
><HTML>
><HEAD>
><META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
><TITLE></TITLE>
></HEAD>
><BODY>
><form name="frm1" >
>
>
><INPUT  type="button"id=cmdButton name=cmdButton value="Button" title="There are five Mondays in every work week"
>		style="position:absolute;
>		left:100;
>		top:10;
>		width=50">
>
>
></form>
></BODY>
></HTML>
>
><script Language=vbScript>
>sub cmdButton_OnClick()
>	if frm1.cmdButton.value = "Button" then
>		frm1.cmdButton.value = "Hello"
>	else
>		frm1.cmdButton.value = "Button"
>	end if
>end sub	
>
></script>
>
>
>
>Tom
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform