Button.Attributes.Add

Sep 2 2004 7:56 AM
I have the line below in my code where addLink is just an ID of a Button. addLink.Attributes.Add("onclick","openPg("+pagename+")"); This code only works if i put in the Page_Load function. Won't it work else where in the code? If i want to put say in someother function must i add any other syntax?

Answers (1)