Friday, 30 March 2012

LinkButton - Not firing click event in second time

http://theway2sharepoint.blogspot.com/2012/03/linkbutton-not-firing-click-event-in.html

 

<script type="text/javascript">

function setFormSubmitToFalse()
{
_spFormOnSubmitCalled = false;
return true;
}

</script>

<asp:LinkButton ID="btnDate" runat="server" HtmlEncode="false" CommandName="Download" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" Text='<%# Eval("Date")%>' OnClientClick="javascript:setFormSubmitToFalse();"></asp:LinkButton> 

No comments:

Post a Comment