Alex,
why not just pass the reference to the control itself, rather than its ID:
<asp:LinkButton id="btnTest" runat="server" OnClientClick="return
testMe(this);" text="test" />
function testMe(control){
control.style = ...
}
> I can successfully use <%=myControl.ClientID%> inside of a Javascript
> function, but does anyone know if it is possible to pass this value to
[quoted text clipped - 20 lines]
>
> Thanks.
Masudur - 26 Jul 2007 07:02 GMT
On Jul 26, 11:56 am, Sergey Poberezovskiy
<SergeyPoberezovs...@discussions.microsoft.com> wrote:
> Alex,
> why not just pass the reference to the control itself, rather than its ID:
[quoted text clipped - 29 lines]
>
> > Thanks.
hi...
Sergey Poberezovskiy's suggested method is right...
in this way you dont have to think about client id...
Thanks
Md. Masudur Rahman (Munna)
Kaz Software Ltd.
www.kaz.com.bd
http://munnacs.110mb.com
Alex - 27 Jul 2007 04:15 GMT
Passing in "this" did the trick. I tried that before, but for some
reason I thought I was getting the control's ID at design time, not
the actual ASP.NET client ID at run time. This works. I appreciate the
help.