ObjectDataSource 控件代码

<asp:ObjectDataSource
  ID="EmployeeDetailsObjectDataSource"
  runat="server"
  TypeName="Samples.AspNet.Controls.NorthwindEmployee"
  SelectMethod="GetEmployee"
  UpdateMethod="UpdateEmployee"
  DeleteMethod="DeleteEmployee"
  InsertMethod="InsertEmployee"
  OnInserted="EmployeeDetailsObjectDataSource_OnInserted" >
  <SelectParameters>
    <asp:Parameter Name="EmployeeID" /> 
  </SelectParameters>
  <InsertParameters>
    <asp:Parameter Name="NewEmployeeID" Direction="Output"
                   Type="Int32" DefaultValue="0" />
  </InsertParameters>
</asp:ObjectDataSource>
posted @ 2010-08-09 11:26  midisong  阅读(103)  评论(0编辑  收藏  举报