Jun 26, 2012, 9:21 AM
How to maintain page index after postback.
Hi,
I am using Grid Panel to show data. In which on clicking for Edit Button, I am doing postback as follows -
I am using Grid Panel to show data. In which on clicking for Edit Button, I am doing postback as follows -
<asp:Button ID="btnEdit" runat="server" OnClick="btnEdit_Click" Style="display: none" />
<Listeners>
<Command Handler="javascript:showPanel(record.data.ID);" />
</Listeners>
<script type="text/javascript">
function showPanel(value) {
__doPostBack('btnEdit', value);
}
</script>
in code behind - protected void btnEdit_Click(object sender, EventArgs e)
{
// some code to load details
}
But after postback I am loosing page Index as I am binding store again.