Hi

I am trying to access a script to show a Modal dialog, from a DataGrids
ItemCommand (ie When a particular cell is clicked/selected (actually the item
in a listbox in a template control in a DataGrids Cell)..though with
FindControl that is not the problem)..

I need to invoke the script, and pass parameters to the Dialog (to retrieve
data/detail about what was selected in a cell of a datagrid).

I have managed only to create a script which reacts to a buttonclick event
ie

If (Not Page.IsClientScriptBlockRegistered("btnModal_click")) Then
Dim strClientScript As String
strClientScript = "<script language=""javascript"">" & vbCrLf & _
"function btnModal_click() {" & vbCrLf & _
"var x =
window.showModalDialog(""testModal.aspx"",""Args"",""dialogHeight: 250px;
dialogWidth: 500px; dialogTop: 300px; dialogLeft: 300px; edge: Raised;
center: Yes; resizable: Yes; help: No; status: Yes;"");" & vbCrLf & _
"}" & vbCrLf & _
"</script>"

Page.RegisterClientScriptBlock("btnModal", strClientScript)
End If
btnModal.Attributes("onclick") = "Javascript:btnModal_click()"

...which at this point does'nt help me vastly.

I need to call this script from within the grids Item Command and then
Provide the required parameters for the Dialog to load the requisite "Child"
detail,

Any Ideas, Any Guru
TIA

--
Neal Rogers
University of Cape Town