Results 1 to 1 of 1

Thread: Event handler didn't work!

  1. #1

    Thread Starter
    Addicted Member scsfdev's Avatar
    Join Date
    Feb 2008

    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.


    here is my code: ( 1.1)
     Dim btnCancel As Button
     btnCancel = New Button
     btnCancel.ID = "btnCancel"
     btnCancel.Text = "Cancel"
     btnCancel.Attributes.Add("onclick", "GetThis")
     AddHandler btnCancel.Click, AddressOf btn_Click
    Last edited by scsfdev; May 19th, 2009 at 02:27 AM. Reason: Asp.Net Version
    I'm using VS 2005 & 2008 & 2010 with SQL Server 2005 Express.

    My hobby beside programming:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width