Posts
16
Comments
100
Trackbacks
18
Tearing my hear out, bit by bit.

Ok, I'm about to have a nervous breakdown and need to post this, and then walk away for a bit.

I have a gridview on a page, that looks like this:

<asp:gridview id="gvTest" runat="server" allowpaging="true" allowsorting="true" autogeneratecolumns="false" pagesize="5" onpageindexchanging="gvTest_PageIndexChanging" onrowcommand="gvTest_RowCommand" onsorting="gvTest_Sorting" enablesortingandpagingcallbacks="false">
 <columns>
  <asp:boundfield datafield="Id" headertext="Id" sortexpression="Id" />
  <asp:boundfield datafield="Name" headertext="Name" sortexpression="Name" />
  <asp:templatefield headertext="Preview">
   <itemtemplate>
    <asp:linkbutton id="linkPreview" runat="server" commandname="Preview" commandargument='<%#(int)DataBinder.Eval(Container.DataItem, "Id") %>' text="Preview" />
   </itemtemplate>
  </asp:templatefield>
 </columns>
</asp:gridview>

I have an UpdatePanel that has triggers like this:

<triggers> 
 <atlas:controleventtrigger controlid="gvTest" eventname="RowCommand" />
</triggers>

Why then, when I sort or page the gridview, does the updatepanel swallow my postback, but when I click the linkbutton that says preview, do I get a postback?

posted on Sunday, February 12, 2006 10:07 AM Print
Comments
No comments posted yet.

Post Comment

Title *
Name *
Email
Url
Comment *  
News