|
-
Sep 17th, 2002, 05:24 PM
#1
Thread Starter
Member
AddHandler HELP
I'm creating a .Net table dynamcially.
I have a sub called CreateTable. I call this sub within the pageload. Within this table, there are image buttons created dynamically. So, within the creation of the table, i use AddHandler and link it to the image buttons.
ex: AddHandler objImage.Command, AddressOf MoveUpclick
When i click on one of the image buttons, the page will postback, run through the pageload event.
If i check to see if the page is being posted back, The event will not fire
Example:
If Not IsPostback then
CreateTable
End if
If i have CreateTable run again (which i don't want it to do), the event will fire fine. Can someone help me figure out how to get this event to fire while makeing sure i don't have to run through the CreateTable sub again?
Thanks in advance!!!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|