views:

17

answers:

0

I have a ListView that retrieves data from an SQL DB and I am editing its data with jQuery's ajax requests. It's working so far but I am unable to change the the lv.InsertItemPosition to None after the ajax request has been dealt with. Is there anyway of doing this? Or even a workaround like having a button calling the jQuery function and a code-behind function at the same time that would set InsertItemPosition to none?

I've tried a workaround that goes like:

<asp:LinkButton ID="btnUpdate" OnClientClick="updteste();" CommandName="Cancel" runat="server" Text="Gravar" />

But the Command trigger is caught before the update and sets the InsertItemPosition before the database is updated.

Thanks in advance, Spre3