I am trying to launch a modal dialog from a grid view. I have it working now by having a "View" command column and calling the GridView_RowCommand method on click. From here I use the following code to launch a modal dialog:
Response.Write("'),'','center: yes; resizable: no; help: no; status: no; dialogWidth: 750px; dialogHeight: 675px;')");
+ dataToSend + "','EditComment.aspx', '710', '700', 'comment')");
Is there a way to do this with a gridView? I'm not sure how to determine the row that was selected. I will also need to access the data key names attribute to get the ID of the item.
Overview of my grid:
View - Link- loads a modal dialog
delete - Link - redirects to a confirm screen
Archive - Link - redirects to a confirm screen
comment - just text
user - just text.
Thanks in advance!