Memnoch1207
Jan 12th, 2005, 02:31 PM
I generate a pop up window from a datagrid hyperlink to delete a record.
The user clicks Yes (to delete it) or No.
When the user clicks Yes, I need to run the code in the buttons click event, then call a javascript function that submits the "parent form" (the page with the datagrid on it). then closes the pop up window.
I tried doing it with the Attributes.Add but that doesn't work because it doesn't execute the code behind code first.
I know I can do it using "Page.RegisterStartupScript", but because of my departments standards, I am not allowed to do it that way.
So does anyone know how I can execute the code in the buttons click event first, then call the client-side javascript function that closes the window and refreshes the datagrid?
The user clicks Yes (to delete it) or No.
When the user clicks Yes, I need to run the code in the buttons click event, then call a javascript function that submits the "parent form" (the page with the datagrid on it). then closes the pop up window.
I tried doing it with the Attributes.Add but that doesn't work because it doesn't execute the code behind code first.
I know I can do it using "Page.RegisterStartupScript", but because of my departments standards, I am not allowed to do it that way.
So does anyone know how I can execute the code in the buttons click event first, then call the client-side javascript function that closes the window and refreshes the datagrid?