Hi this is my row in gridview in ASP.Net
<ItemTemplate>
<a id="aOpen" onclick="javascript:Open(<%#((DataRowView)Container.DataItem)['DocTypeCode'] %>)" >A_<%#((DataRowView)Container.DataItem)["Id"] %></a>
</ItemTemplate>
Here is my javascript
<script type="text/javascript">
function Open(var id) {
var strPageURL = '<%= ResolveClientUrl("~/View.aspx?id="+id) %>';
OpenCustomDialogWithRefresh(strPageURL, 750, 500, "View Document Type");
return true;
}
</script>
I would like to pass the Id value from the gridview to the javascript and open a new page with query string. How should I try ? Mine does not work.