DataGrid and UserControls

Discussion in 'ASP .Net Web Controls' started by John, Dec 4, 2003.

  1. John

    John Guest

    So I have run into a strange issue. I have a .aspx page
    that contains a user control at the top of the page
    {header) and 2 datagrids. In the first datagrid I allow the
    user to click on a button that triggers the OnItemCommand.
    When this command fires I add a new row to the second
    datagrid with data from the first datagrid.

    All this functionality works great before I add the
    UserControl to the top of the page. The instant I add the
    UserControl to the page it seems the OnItemCommand Event
    fails to run. I can click on the button in the first
    datagrid all day with no new row being inserted to the
    second datagrid. Any ideas?

    j
     
    John, Dec 4, 2003
    #1
    1. Advertising

  2. John

    Axel Dahmen Guest

    Hmmm, well, you've programmed the code. Did you already step through it
    during debugging? The event should still be raised (Page_Load and the
    OnClick event), or doesn't it?

    HTH,
    Axel Dahmen

    -----------------
    "John" <> schrieb im Newsbeitrag
    news:093e01c3ba9e$92588620$...
    > So I have run into a strange issue. I have a .aspx page
    > that contains a user control at the top of the page
    > {header) and 2 datagrids. In the first datagrid I allow the
    > user to click on a button that triggers the OnItemCommand.
    > When this command fires I add a new row to the second
    > datagrid with data from the first datagrid.
    >
    > All this functionality works great before I add the
    > UserControl to the top of the page. The instant I add the
    > UserControl to the page it seems the OnItemCommand Event
    > fails to run. I can click on the button in the first
    > datagrid all day with no new row being inserted to the
    > second datagrid. Any ideas?
    >
    > j
     
    Axel Dahmen, Dec 6, 2003
    #2
    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. Antonio Maciel

    Validator controls and usercontrols

    Antonio Maciel, Jul 9, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    377
    Antonio Maciel
    Jul 9, 2003
  2. John Hamm
    Replies:
    1
    Views:
    457
  3. Flare
    Replies:
    5
    Views:
    550
    Flare
    Nov 21, 2003
  4. =?Utf-8?B?QWxlc3NhbmRybyBSb3NzaQ==?=

    View and place Usercontrols in Webforms

    =?Utf-8?B?QWxlc3NhbmRybyBSb3NzaQ==?=, Jan 22, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    309
    =?Utf-8?B?QWxlc3NhbmRybyBSb3NzaQ==?=
    Jan 22, 2004
  5. Anthony Williams

    Problems with UserControls within a DataGrid

    Anthony Williams, Sep 18, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    3
    Views:
    142
    Anthony Williams
    Sep 22, 2003
Loading...

Share This Page