all groups > dotnet faqs > july 2006 >
You're in the

dotnet faqs

group:

Client side script ASP.NET


Client side script ASP.NET henk
7/20/2006 9:19:00 PM
dotnet faqs: Hi,

How can i eassely add client side script in my code. I have a sort of
TAB control, that works through postbacks but i want the action taken on the
client side. Thus when i click on a link a panel wil become visible or not
visible..


Thanks Henk
Re: Client side script ASP.NET Scott M.
7/21/2006 8:57:48 AM
In the server-side code use attributes.add() on the server control in
question.

lblSomething.attributes.add("onClick","doSomething()")

And then you can hard code a client-script in the .aspx page called
"doSomething()"


[quoted text, click to view]

Re: Client side script ASP.NET henk
7/22/2006 1:40:44 PM
Thanks, thats just what i needed..


[quoted text, click to view]
AddThis Social Bookmark Button