G
Guest
Hi
I can access a script from a button click event, to show a Dialog box but..
I need to (from the DGrids) Item Command, so I can trap the cell and correct
master data, then call a script to show a Dialog/Modal window, to display the
Detailed /"Child" data of that data selected from a Grids Cell.
From a Button Click, dynamically created from Page Load I provide a scipt a
which fires when the control button is clicked,.. but to take it further...???
eg
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()"
????
TIA
Neal
I can access a script from a button click event, to show a Dialog box but..
I need to (from the DGrids) Item Command, so I can trap the cell and correct
master data, then call a script to show a Dialog/Modal window, to display the
Detailed /"Child" data of that data selected from a Grids Cell.
From a Button Click, dynamically created from Page Load I provide a scipt a
which fires when the control button is clicked,.. but to take it further...???
eg
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()"
????
TIA
Neal