I was using an asp:Button on each row to pass 'ID' to code behind 'lvDataStores_OnButtonClick()'.
Instead of clicking the button I want to make the entire row clickable. I have done this using
<tr runat="server" class="altItemTableData" onclick='<%#"doPostBack("+Eval("ID")+")" %>'>
From JS I then want to press the 'btn_ViewMap' and call code lvDataStores_OnButtonClick() while passing the argument 'MapId'...The pluming of this works as I can call code behind 'protected void lvDataStores_OnButtonClick(Object sender, CommandEventArgs e)
'
But I am unsure how to pass mapId as an argument in the $$("btn_ViewMap")[0].click();
. ATM I am using something like:
<script type="text/javascript">
function doPostBack(Mapid)
{
alert("MAP ID is " + Mapid)
$$("btn_ViewMap")[0].click();
}
<asp:Button ID="btn_ViewMap" runat="server" visible="false" CommandName="View" CommandArgument='<%#Eval("ID")%>' OnCommand="lvDataStores_OnButtonClick" />