I am Dynamically generating HTMLButtons inside the cells of a table as follows
-------------------------------------------------------------------------------------
Dim DelButton As HTMLButto
DelButton = new HTMLButto
DelButton.id = CStr(ResProjReader.GetInt32(2)
DelButton.Attributes("onServerClick") = "DeleteProject_vb
DelButton.Attributes("onClick") = "DeleteProject_vb
DelButton.Attributes("abcd") = "DeleteProject_vb
DelButton.Attributes("runat") = "server
DelButton.InnerText = "Delete
c.Controls.Add(DelButton
r.Cells.Add(c
ResourceProject.Rows.Add(r
-------------------------------------------------------------------------------------
This button shows up in the ASPX page in browser,but when I click on it the onServerClick method "DeleteProject_vb" is not called...Does any body have any idea about how i can fix it
Thanks
Vikram
|