Author: komyg | Posted on: 10/7/2010 11:10:32 AM | Views : 263

Hi, I am developing a web site to display some data that is inside a database.
To do this I've created an ASPX web page that opens a connection to a database and retrieves the desired data. After that it populates an asp:table object dynamically.
The problem is that some of the fields that are retrieved from the database are too large to be displayed on the web page, so I decided to make a popup that would be able to display just the desired field.
To do this I've added a button to the asp:table so that when the user clicks it the popup would appear with the contents of the field. However what is happening is that when the user clicks on the button, the page just gets reloaded and the Click event handler is never called.
Below is the code in which I add the button to a TableCell, and the TableCell to the TableRow collection:
// Coluna Mensagem Formatada. celula = new TableCell(); celula.HorizontalAlign = Horizo ...

Go to the complete details ...