firing the server side click event

firing the server side click event

Hi, 

I have an ASP.NET datalist  

  1. <asp:DataList ID="appointmentList" runat="server" Width="100%">
  2.               <ItemTemplate>
  3.                 <div class="appointment">
  4.                   <div style="float: left; display: inline-block; width: 75%;">
  5.                     <asp:Label Font-Bold="true" ID="type" runat="server" Text='<%# Eval("AppointmentCategoryDescription") %>'></asp:Label>
  6.                     -
  7.                     <asp:Label ID="date" runat="server" Text='<%# DateTime.Parse(Eval("AppDate").ToString()).ToShortDateString() %>'></asp:Label><br />
  8.                     (<asp:Label ID="outcome" runat="server" Text='<%# Eval("Status") %>'></asp:Label>)
  9.                     <br />
  10.                     <asp:Label ID="location" runat="server" Text='<%# Eval("Clinic") %>'></asp:Label>
  11.                     <div class="clear"></div>
  12.                   </div>
  13.                   <div style="float: left; display: inline-block; width: 25%; text-align: right;">
  14.                     <asp:Button style="display: none;" ID="view" runat="server" Text="VIEW" CssClass="viewbutton" CommandName='<%# Eval("AppID").ToString() + "^" + Eval("AppointmentCategoryDescription") + "^" + Eval("Company") %>' OnClick="view_Click" />
  15.                     <div class="clear"></div>
  16.                     <asp:Image ID="icon" ToolTip='<%# Eval("Company") %>' runat="server" AlternateText='<%# Eval("Company") %>' ImageUrl='<%# string.Format("~/SpecsaversPortal/images/{0}icon.png", Eval("Company").ToString().Substring(0,1).ToLower()) %>' />

  17.                   </div>
  18.                   <div class="clear"></div>
  19.                 </div>
  20.               </ItemTemplate>
  21.             </asp:DataList>

I need to fire the OnClick event of the button when the whole div is clicked so I tried

  1. $(document).ready(function () {
  2. $(".appointment").click(function () {
  3.         $('.viewbutton').click();
  4.       });
  5.     });
But, being new to jQuery, I am assuming that the click() event is the client not the server?  How can I fire the server side?