> Is it not possible to call a JS function from an ASP.Net button.
>
[quoted text clipped - 11 lines]
>
> WR
Sorry, I forgot to mention this is 1.1 application. We are not quite ready
to upgradie it to 2.0. Is there any solution for 1.1?
WR
> > Is it not possible to call a JS function from an ASP.Net button.
> >
[quoted text clipped - 13 lines]
>
> Use OnClientClick instead of OnClick (ASP.NET 2.0 or higher).
Riki - 17 Nov 2007 18:50 GMT
> Sorry, I forgot to mention this is 1.1 application. We are not quite
> ready to upgradie it to 2.0. Is there any solution for 1.1?
>
> WR
Yes, you have to add the clientside onclick programmatically, like this
(in Page_Load)
If Not Ispostback Then
myButton.Attributes.Add("onclick","JS_Function()")
End If

Signature
Riki
>>> Is it not possible to call a JS function from an ASP.Net button.
>>>
[quoted text clipped - 17 lines]
>>
>> Riki