Hi,
Smart. Thanks. Maybe one more question if you know perhaps. If my
JavaScript function stopClock() return some string (let's say "Today") and I
want that my Button1.Text is now changed to "Today". How do I do it?
Greetings,
Anton, ml.
----- Original Message -----
From: "Dan" <da*@dontspam.com>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Sent: Thursday, February 12, 2004 3:42 PM
Subject: Re: asp:net button and javascript
Change tag in your webform to:
<asp:Button id="Button1" style="Z-INDEX: 101; LEFT:
8px; POSITION: absolute; TOP: 136px" runat="server"
Text="Button"></asp:Button>
And then in your Page_Load, do:
Button1.Attributes.Add("onClick", stopClock()")
"Anton ml. Vahčič" <an**********@campus.fri.uni-lj.si> wrote in message
news:eq**************@TK2MSFTNGP12.phx.gbl... Hi,
Can anyone tell me how I convince my
<asp:Button id="Button1" onclick="stopClock()" style="Z-INDEX: 101;
LEFT: 8px; POSITION: absolute; TOP: 136px" runat="server"
Text="Button"></asp:Button>
that will run javascript function - stopClock()
Regular html button does not seem to have a problem with that.
Anton, ml.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.583 / Virus Database: 369 - Release Date: 10.2.2004