Datagrid update command

Discussion in 'ASP .Net' started by =?Utf-8?B?c2lhag==?=, Feb 28, 2005.

  1. Helo All,
    If some one has faced a similar issue..
    My datagrid Update command is not getting fired in fact it seems that the no
    event fires on clicking the update link. Although the cancel and the Edit
    Commmand are getting fired properly.

    The One difference I have seen is that in the task bar ..on hovering on the
    link the javascript for the update link seems different. I dont know if it
    makes sense..

    Edit Button : javascript:__doPostBack('DataGrid1$_ctl7$_ctl3','')
    Cancel buton : javascript:__doPostBack('DataGrid1$_ctl7$_ctl0','')
    Update button :
    javascript:{if%20(typeof(Page_ClientValidate)%20!=%20'function'%20||%20%20Page_ClientValidate())%20__doPostBack('DataGrid1$_ctl7$_ctl2','')}


    I have in the datagrid code OnUpdateCommand="DataGrid1_UpdateCommand"
    and in Code behind..
    Public Sub DataGrid1_UpdateCommand(ByVal source As System.Object, ByVal e As
    System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
    DataGrid1.UpdateCommand

    Cheers,
    siaj
     
    =?Utf-8?B?c2lhag==?=, Feb 28, 2005
    #1
    1. Advertisements

  2. =?Utf-8?B?c2lhag==?=

    Craig G Guest

    have you set the OnUpdateCommand or OnItemCommand in the HTML for the Grid?

    "siaj" <> wrote in message
    news:...
    > Helo All,
    > If some one has faced a similar issue..
    > My datagrid Update command is not getting fired in fact it seems that the

    no
    > event fires on clicking the update link. Although the cancel and the Edit
    > Commmand are getting fired properly.
    >
    > The One difference I have seen is that in the task bar ..on hovering on

    the
    > link the javascript for the update link seems different. I dont know if it
    > makes sense..
    >
    > Edit Button : javascript:__doPostBack('DataGrid1$_ctl7$_ctl3','')
    > Cancel buton : javascript:__doPostBack('DataGrid1$_ctl7$_ctl0','')
    > Update button :
    >

    javascript:{if%20(typeof(Page_ClientValidate)%20!=%20'function'%20||%20%20Pa
    ge_ClientValidate())%20__doPostBack('DataGrid1$_ctl7$_ctl2','')}
    >
    >
    > I have in the datagrid code OnUpdateCommand="DataGrid1_UpdateCommand"
    > and in Code behind..
    > Public Sub DataGrid1_UpdateCommand(ByVal source As System.Object, ByVal e

    As
    > System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
    > DataGrid1.UpdateCommand
    >
    > Cheers,
    > siaj
     
    Craig G, Feb 28, 2005
    #2
    1. Advertisements

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. San Diego Guy
    Replies:
    0
    Views:
    756
    San Diego Guy
    Aug 7, 2003
  2. =?Utf-8?B?YWJkb2x5?=

    datagrid update command

    =?Utf-8?B?YWJkb2x5?=, Jun 1, 2004, in forum: ASP .Net
    Replies:
    10
    Views:
    6,334
    sobin
    Mar 19, 2005
  3. John Blair

    Datagrid update command - and validators

    John Blair, Jan 24, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    3,465
    vgebrev
    Jan 30, 2008
  4. =?Utf-8?B?c2lhag==?=

    datagrid update Command

    =?Utf-8?B?c2lhag==?=, Mar 4, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    3,528
    =?Utf-8?B?c2lhag==?=
    Mar 7, 2005
  5. BW
    Replies:
    1
    Views:
    912
  6. Mr Newbie

    DataGrid - Update Command Event Problem

    Mr Newbie, Sep 21, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    632
    Mr Newbie
    Sep 21, 2005
  7. Andreas Klemt
    Replies:
    0
    Views:
    524
    Andreas Klemt
    Oct 8, 2003
  8. prakash
    Replies:
    2
    Views:
    836
    prakash
    Apr 11, 2005
Loading...