D
David Cho
I am trying to use the server side code to have a popup window come up only
under a certain condition.
For example, the user presses a button to retrieve a set of records. So
- If there are records to be retrieved, then display the records in a
datagrid
- If there aren't any, then show in the pop up window that there aren't any
to display.
The problem with setting the "OnClick" attribute of the button to the alert
java script is that, I cannot make it conditional. It will launch the pop
up window no matter what.
under a certain condition.
For example, the user presses a button to retrieve a set of records. So
- If there are records to be retrieved, then display the records in a
datagrid
- If there aren't any, then show in the pop up window that there aren't any
to display.
The problem with setting the "OnClick" attribute of the button to the alert
java script is that, I cannot make it conditional. It will launch the pop
up window no matter what.