MedtronicVascSR
asked on
Pass GridView Contents Via A Click Event To A Popup Window...
Hi,
I've tried a fews ways to make this work, but have had no luck. Is it possible to use the showModalDialog() to open a new aspx page and pass it the values from a Gridview that resides on the parent page? I tried my hand with the dialogArguments Property bit I wasn't able to nail down the correct syntax to read the values to pass along. Any thoughts on how to accomplish this?
One idea of many that looked promising:
<script language="javascript" type="text/javascript">
var ThisText = MainContent_gvwEmployeeCar t.rows[1]. cells[1].C olumn1;
window.showModalDialog("IC ertifyDocu mentTraini ng.aspx", ThisText, "dialogHeight:300px; dialogLeft:200px;");
</script>
Cheers,
Ty
I've tried a fews ways to make this work, but have had no luck. Is it possible to use the showModalDialog() to open a new aspx page and pass it the values from a Gridview that resides on the parent page? I tried my hand with the dialogArguments Property bit I wasn't able to nail down the correct syntax to read the values to pass along. Any thoughts on how to accomplish this?
One idea of many that looked promising:
<script language="javascript" type="text/javascript">
var ThisText = MainContent_gvwEmployeeCar
window.showModalDialog("IC
</script>
Cheers,
Ty
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
I'm sure there is a more elegant/efficient way to pass the contents whole, but this will work for what I need to do.
Cheers,
Ty