468,242 Members | 1,902 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,242 developers. It's quick & easy.

Is it possible to Raise the click event on a programatically created link button

I have programaticaaly created several Link Buttons on my ASPX page, I would like to raise the Click event of these Link buttons, passing in appropriate parameters depending on the Link button I click. Below is the code I have written to create the Link Buttons

For i as integer = 0 to 10
Dim lnkbtn as new linkbutton
lnkbtn.ID = lnkbtn&i.tostring()
lnkbtn.Text = Test&i.tostring(()
me.controls.add(lnkbtn)
Next

Since the Link buttons are dynamicaaly created I do not know how to access its Click Method. I would highly appreciate if someone Can suggest a way to access the Controls Methods especially the Click Event

:confused:
Jul 27 '06 #1
0 2233

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Cary Linkfield | last post: by
6 posts views Thread by Li Weng | last post: by
21 posts views Thread by news.btinternnet.com | last post: by
reply views Thread by Demetri | last post: by
6 posts views Thread by Kevin Attard | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.