471,072 Members | 1,259 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,072 software developers and data experts.

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(()

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

Jul 27 '06 #1
0 2300

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.