B
Bill Cohagan
I've created a user control (not a custom control) consisting of a table
with a single row containing three cells, each cell containing a button.
Following is the code for this user control.
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="NewEditDeleteButtons.ascx.cs"
Inherits="UserControls_NewEditDeleteButtons" %>
<%@ Register TagPrefix="ctrl" Namespace="IDWeb.Web.Control"
Assembly="IDWeb.Web" %>
<asp:Table ID="AEDBTable" runat="server">
<asp:TableRow runat="server">
<asp:TableCell ID="TableCell26" runat="server" CssClass="data">
<ctrl:Button ID="btnNew" runat="server" Text="+"
OnClick="btnNew_Click"/>
</asp:TableCell>
<asp:TableCell ID="TableCell1" runat="server" CssClass="data">
<ctrl:Button ID="btnEdit" runat="server" Text="e"
OnClick="btnEdit_Click"/>
</asp:TableCell>
<asp:TableCell ID="TableCell27" runat="server" CssClass="data">
<ctrl:Button ID="btnDelete" runat="server" Text="X"
OnClick="btnDelete_Click"/>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
This user control works fine at runtime and renders as expected. In design
view however the page containing the NewEditDeleteButtons tag doesn't show
anything for this control. Is there a way I can get it to render in the
designer?
TIA,
Bill Cohagan
with a single row containing three cells, each cell containing a button.
Following is the code for this user control.
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="NewEditDeleteButtons.ascx.cs"
Inherits="UserControls_NewEditDeleteButtons" %>
<%@ Register TagPrefix="ctrl" Namespace="IDWeb.Web.Control"
Assembly="IDWeb.Web" %>
<asp:Table ID="AEDBTable" runat="server">
<asp:TableRow runat="server">
<asp:TableCell ID="TableCell26" runat="server" CssClass="data">
<ctrl:Button ID="btnNew" runat="server" Text="+"
OnClick="btnNew_Click"/>
</asp:TableCell>
<asp:TableCell ID="TableCell1" runat="server" CssClass="data">
<ctrl:Button ID="btnEdit" runat="server" Text="e"
OnClick="btnEdit_Click"/>
</asp:TableCell>
<asp:TableCell ID="TableCell27" runat="server" CssClass="data">
<ctrl:Button ID="btnDelete" runat="server" Text="X"
OnClick="btnDelete_Click"/>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
This user control works fine at runtime and renders as expected. In design
view however the page containing the NewEditDeleteButtons tag doesn't show
anything for this control. Is there a way I can get it to render in the
designer?
TIA,
Bill Cohagan