|
-
Jan 12th, 2005, 03:31 PM
#1
Thread Starter
Frenzied Member
Button: Execute code behind code, then call javascript function.
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?
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|