Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > DataGrid and UserControls

Reply
Thread Tools

DataGrid and UserControls

 
 
John
Guest
Posts: n/a
 
      12-04-2003
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
 
Reply With Quote
 
 
 
 
Axel Dahmen
Guest
Posts: n/a
 
      12-06-2003
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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
View and place Usercontrols in Webforms =?Utf-8?B?QWxlc3NhbmRybyBSb3NzaQ==?= ASP .Net 2 01-22-2004 01:16 PM
Problem with adding UserControls programtic in the OnPreRender event and still keep the UC viewState Flare ASP .Net 5 11-21-2003 06:56 PM
ViewState, Dynamic UserControls, and the Back Button John Hamm ASP .Net 1 11-08-2003 07:54 AM
Problems with UserControls within a DataGrid Anthony Williams ASP .Net Datagrid Control 3 09-22-2003 09:37 AM
Validator controls and usercontrols Antonio Maciel ASP .Net 0 07-09-2003 12:34 PM



Advertisments