By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,294 Members | 2,645 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,294 IT Pros & Developers. It's quick & easy.

datagrid inside user control wont fire events

P: n/a
Dear Professionals,

I have placed my datagrid :

<asp:Datagrid ID="DGEdu" runat="server"

in a user control. <%@ Control Language="VB"%> I include this control
on my main page:
<%@ Register TagPrefix="EducationControl"
TagName="EducationDG" Src="uc_education.ascx" %>

and in the middle of the html part i show it:
<EducationControl:EducationDG id="DGEdu" runat="server"/>

Now for some reason when the button clicks inside datagrid are made -
the page just does a postback but does not seem to go to the
DGEdu_OnItemCommand, as I tried to print something there and nothing
happened. Seems that button events inside datagrid are not really
attached to the datagrid events anymore. I think there is something
missing, like call delegations from main page to user component, but i
have no idea how to do so. If anyone knows anything to help, please ...
Datagrid was copied out of main so it was working fine before, it loads
from a non-empty dataset and seems to do everything but handling its
button clicks.

Thank you,

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a

Not that you are not welcome here, however you have much more change on
answers in the newsgroups

microsoft.public.dotnet.framework.aspnet and
microsoft.public.dotnet.framework.aspnet.webcontro ls

Although the last seems the better for your question would I sent in in your
situation crossposted. One message to both newsgroups.

I hope you get a lot of answers.

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.