Hello,
I am bingding value in gridview and i have javascript function i am doing postpack once i find gridview client id. but as i used itemtemplate in table , javscript is not taking client id of gridview id. see below my coding.
JavaScript:
<script type="text/javascript" language="javascript">
function qandans_filter_search(s) {
alert(s);
debugger;
if (s == 5) {
document.getElementById('<%= hiddenval.ClientID %>').value = s;
__doPostBack("<%=girdview1.ClientID%>", ""); // client is not coming. here coming like " table#gridview1 . so, here how to capture gridviewid as client id which stars table#ct.....gridvi..
}
else {
document.getElementById('<%= hiddenval.ClientID %>').value = s;
}
}
</script>
Gridview :
<asp:GridView ID="girdview1" runat=" ...
Go to the complete details ...