Re: Adding a client side event handler to standard control

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Urs Vogel (uvogel_at_msn.com)
Date: 09/19/04


Date: Sun, 19 Sep 2004 22:52:24 +0200

Thanks Hermit

wasn't aware of this collection.

Urs

"Hermit Dave" <hermitd.REMOVE@CAPS.AND.DOTS.hotmail.com> schrieb im
Newsbeitrag news:%23VhT0konEHA.648@tk2msftngp13.phx.gbl...
> add the attributes to the webcontrols in your page_load
>
> if not Page.IsPostback then
> objWebControl.Attributes.Add("onblur", "BlurFunc")
> end if
> --
>
> Regards,
>
> Hermit Dave
> (http://hdave.blogspot.com)
> "Urs Vogel" <uvogel@msn.com> wrote in message
> news:u9YdAYonEHA.2616@tk2msftngp13.phx.gbl...
>> Hi
>>
>> Rather than postback, I would like to call a client side scrpit on
> standard
>> browser events (such as onfocus or onblur). I can add styles to my
> controls,
>> set all kinds of properties, but It's not clear for me how do an event
> (like
>> a simple "onblur:'BlurFunc()'") to a standard WebForm control. Any hints?
>>
>> Thanks. Urs
>>
>>
>
>