Event handler didn't work!
Hi all,
I have a page which used "frameset" to divide one page into 2 parts.
And so, I have 2 pages in the above 2 frame.
One of the page, I have to create controls dynamically. I have one button in this dynamically created page.
I also put eventhandler to this button. But later I found that its not working at all.
I tried the same code in a new project with only one page, its working!!
Can anybody guide me what I missing? or it just because the page is located inside a frame???? I even tried javascript. It also not working.
Thanks.
here is my code: (asp.net 1.1)
Code:
Dim btnCancel As Button
btnCancel = New Button
btnCancel.ID = "btnCancel"
btnCancel.Text = "Cancel"
btnCancel.Attributes.Add("onclick", "GetThis")
AddHandler btnCancel.Click, AddressOf btn_Click