DetailView onUpdating problem

Discussion in 'ASP .Net' started by LamSoft, Jul 4, 2007.

  1. LamSoft

    LamSoft Guest

    By Double clicking the object detailview, it will auto make a sub-procedure
    called XXXXX_Selecting, however I want a sub-procedure to be called while
    the detailview is being updated, so that i add a onUpdating="xxxxx" inside
    the <asp:DetailView> and make a sub in the cs file, but while try to run the
    project, it has the following error, is there any other method to make a
    onupdating sub rather than i have to write the code myself, thanks.

    Error 1 No overload for 'sDS_ServerInformation_Updating' matches delegate
    'System.Web.UI.WebControls.SqlDataSourceCommandEventHandler'
    C:\Inetpub\wwwroot\list\listSeverInformation.aspx 35


    C:\Inetpub\wwwroot\list\listSeverInformation.aspx 35 ==>
    <asp:SqlDataSource> .....
    UpdateCommand="UPDATE serverDetail SET location = @location, server_owner =
    @server_owner, application = @application, backup_type = @backup_type WHERE
    (server_id = (SELECT id FROM serverList WHERE (serverip = @serverip)))"
    OnSelecting="sDS_ServerInformation_Selecting"
    OnUpdating="sDS_ServerInformation_Updating">
    </asp:SqlDataSource>
     
    LamSoft, Jul 4, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kha Tran
    Replies:
    0
    Views:
    567
    Kha Tran
    Jun 3, 2005
  2. =?Utf-8?B?QXJuZQ==?=

    DetailView

    =?Utf-8?B?QXJuZQ==?=, Jan 26, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    1,838
    msnews.microsoft.com
    Jan 27, 2006
  3. Mike
    Replies:
    0
    Views:
    485
  4. Henry Lee

    DetailView Data Update Error

    Henry Lee, Mar 2, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    959
    Henry Lee
    Mar 2, 2006
  5. =?Utf-8?B?Sm9obiBCYWlsZXk=?=

    Formating a date field in ASP .Net 2.0 detailview

    =?Utf-8?B?Sm9obiBCYWlsZXk=?=, Mar 29, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    3,857
    elizas
    Apr 29, 2010
Loading...

Share This Page