any ajax person to help or grid view

K

kal

I have a gridview on my page - the 'onSelIndexChan' of which is wired to a
ajax update panel - via triggers.

this works fine but the grids paging wont work - or rather it fires a post
back but the next page isnt displayed.
and then when i click the page link again it gives an invalid argument
error.

There is no code in the event handlers

If i take out the ajax update panel the paging works again!

Here are some snippets

<asp:GridView ID="UserList" runat="server" ....

OnSelectedIndexChanged="UserList_SelectedIndexChanged" Font-Size="10"

DataKeyNames="UserId" AllowPaging="true" PageSize="5"

AutoGenerateSelectButton="true">

<Columns>

<asp:BoundField DataField="UserName" HeaderText="User" />

<asp:BoundField DataField="UserId" Visible="false" />

....
<asp:UpdatePanel ID="UpdatePanel1" runat="server">

<contenttemplate>

<asp:panel ID="UserDetailsPanel" runat="server" ...

</asp:panel>



</contenttemplate>

<triggers>

<asp:AsyncPostBackTrigger ControlID="UserList"
EventName="SelectedIndexChanged" />

</triggers>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top