<%@ Control Language="C#" AutoEventWireup="true" CodeFile="View.ascx.cs" Inherits="ADefWebserver.Modules.CategoryAdmin.View" %> <table cellpadding="8" cellspacing="8"> <tr> <td valign="top"> <asp:TreeView ID="tvCategories" runat="server" OnSelectedNodeChanged="tvCategories_SelectedNodeChanged" ExpandDepth="0"> <SelectedNodeStyle BackColor="#CCCCCC" Font-Bold="False" Font-Underline="False" /> <DataBindings> <asp:TreeNodeBinding DataMember="ADefWebserver.Modules.CategoryAdmin.Catagories" TextField="Value" ValueField="Value" Depth="0" /> </DataBindings> </asp:TreeView> </td> <td valign="top"> <table cellpadding="2" bgcolor="#CCCCCC"> <tr> <td> <table cellpadding="2"> <tr> <td align="right"> <asp:Label ID="lblCategory" runat="server" Text="Category:"></asp:Label> </td> <td> <asp:TextBox ID="txtCategory" runat="server"></asp:TextBox> </td> </tr> <tr> <td align="right"> <asp:Label ID="lblParentCategory" runat="server" Text="Parent Category:"></asp:Label> </td> <td> <asp:DropDownList ID="ddlParentCategory" runat="server"> </asp:DropDownList> </td> </tr> <tr> <td> <asp:TextBox ID="txtCategoryID" runat="server" Columns="1" Visible="False"></asp:TextBox> <asp:TextBox ID="txtParentCategoryID" runat="server" Columns="1" Visible="False"></asp:TextBox> </td> <td> </td> </tr> <tr> <td align="center" colspan="2"> <asp:Button ID="btnUpdate" runat="server" OnClick="btnUpdate_Click" Text="Update" ForeColor="Blue" /> <asp:Button ID="btnAddNew" runat="server" Text="Add New" ForeColor="Green" OnClick="btnAddNew_Click" /> <asp:Button ID="btnDelete" runat="server" ForeColor="Red" Text="Delete" OnClientClick='if (!confirm("Are you sure you want to delete?") ){return false;}' OnClick="btnDelete_Click" /> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table>
Buy DotNetNuke Modules from Snowcovered |
DotNetNuke™ is a registered trademark of DotNetNuke Corporation.