Button.Attributes.Add
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?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

gayamantra4 reputationPosted Sep 2, 2004, 4:18 AM EDT