can't edit datagrid when used as UserControl

S

sean

Hi There,

I have created some user controls to include in my aspx pages, the problem I
have is if I include a user control that has an updatable datagrid on it and
I click the button it references the page where the control is called and
not the control itself.

For example in the code below I have a control which (_join_content.ascx )
has an updatable datagrid on it, when I try to update the details on the
page by clicking the form button on the datagrid the page is submitted back
to the high level page. When I use the control page on its own the datagrid
works fine.

any ideas of how I can work around this?

Sean - thank in adavance


<%@ Register TagPrefix="UserControl1" TagName="Menu"
Src="includes/_Menu.ascx" %>
<%@ Register TagPrefix="UserControl2" TagName="Header"
Src="includes/_Header.ascx" %>
<%@ Register TagPrefix="UserControl3" TagName="Join"
Src="includes/_join_content.ascx" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="distribution" content="global">
<meta name="revisit-after" content="14 days">
<meta name="ROBOTS" content="ALL">

<title>title</title>
</head>

<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<table width="640" border="0" cellpadding="0" cellspacing="0">
<td colspan="2" valign=top><UserControl2:Header runat="server" /></td>
<tr>
<td width="100" valign=top><UserControl1:Menu runat="server" /></td>
<td width="563" valign=top><UserControl3:Join runat="server" /></td>
</tr>

<TR>
<td colspan=2>&nbsp;footer</td>
<td>
</tr>
</table>
</body>
</html>
 
R

Raterus

I'd say post in an asp.net forum, but it looks like you already have. The surface of your question has nothing to do with ado.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top