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. Advertisements

  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. 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. Antonio Maciel

    Validator controls and usercontrols

    Antonio Maciel, Jul 9, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    447
    Antonio Maciel
    Jul 9, 2003
  2. John Hamm
    Replies:
    1
    Views:
    530
  3. Flare
    Replies:
    5
    Views:
    725
    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:
    373
    =?Utf-8?B?QWxlc3NhbmRybyBSb3NzaQ==?=
    Jan 22, 2004
  5. =?Utf-8?B?UmF5IFdpbGxpYW1z?=

    @Page validateRequest And UserControls

    =?Utf-8?B?UmF5IFdpbGxpYW1z?=, May 7, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    4,030
    avnrao
    May 7, 2004
  6. Brett
    Replies:
    1
    Views:
    582
    Brett
    Sep 9, 2004
  7. Rikart Pettersen

    UserControls and Norwegian characters

    Rikart Pettersen, Jan 3, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    414
    Rikart Pettersen
    Jan 3, 2005
  8. Anthony Williams

    Problems with UserControls within a DataGrid

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