M
MikeB
Hello,
I have a content page that is from a Master page which has 2 content panes.
How do I add my forms to the content page? Each pane needs a form but you
can not have multiple form tags nor can the form tages be outside of the
content tags?
Does this make since? Below is my source to the pages. Basically I need
both content tags to have form tags.
%@ Page Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true"
CodeFile="Inventory.aspx.cs" Inherits="Inventory" Title="Enterprises, LLC"
%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<asp:Label ID="lblHeader" runat="server" Text="Welcome to our online
store, selet a Category on the left to view our products."
CssClass="NonHeaderLabel" Width="100%"></asp:Label>
<asp:GridView ID="gvProducts" runat="server"
AllowPaging="True"
OnPageIndexChanging = "gvProducts_PageIndexChanging"
OnRowDataBound = "gvProducts_RowDataBound"
AutoGenerateColumns="False" CellPadding="3" DataKeyNames="ProductID"
GridLines="Horizontal" PageSize="25" Width="100%"
<Columns>
<asp:TemplateField>
<EditItemTemplate>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<img src='Handler.ashx?Size=S&ProductID=<%#
Eval("ProductID") %>&CompanyID=<%# Eval("CompanyID") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Title">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%#
Bind("Title") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%#
Bind("Title") %>'></asp:Label><BR>
<asp:Label ID="Label2" runat="server" Text='<%#
Bind("ProductCondition") %>'></asp:Label>
</ItemTemplate>
<ItemStyle VerticalAlign="Top" />
<ItemStyle VerticalAlign="Top" />
</asp:BoundField>
<asp:TemplateField HeaderText="Price">
<EditItemTemplate>
<asp:TextBox ID="TextBox3" runat="server" Text='<%#
Bind("Price") %>'></asp:TextBox>
</EditItemTemplate>
<ItemStyle VerticalAlign="Top" />
<ItemTemplate>
<asp:Label ID="lblprice" runat="server" Text='<%#
Bind("Price") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:ButtonField ButtonType="Button" Text="Details">
<ControlStyle CssClass="ButtonStyle" />
<ItemStyle Width="50px" VerticalAlign="Top" />
</asp:ButtonField>
</Columns>
<HeaderStyle CssClass="GridViewHeader" />
<AlternatingRowStyle CssClass="GridViewAltRow" />
</asp:GridView>
</asp:Content>
<asp:Content ID="Content2" runat="server"
ContentPlaceHolderID="Contentplaceholder2">
<asp:Label ID="Label1" runat="server" CssClass="HeaderLabel"
Text="Categories" Width="100%"></asp:Label>
<aspataList ID="dlCategories" runat="server" DataKeyField="ID">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server"
OnCommand="CategoryButtonClick" CommandArgument='<%# Eval("ID").ToString()
%>' CommandName='<%# Eval("CategoryDescription").ToString() %>' ><%#
Eval("CategoryDescription").ToString() %></asp:LinkButton>
</ItemTemplate>
</aspataList>
</asp:Content>
I have a content page that is from a Master page which has 2 content panes.
How do I add my forms to the content page? Each pane needs a form but you
can not have multiple form tags nor can the form tages be outside of the
content tags?
Does this make since? Below is my source to the pages. Basically I need
both content tags to have form tags.
%@ Page Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true"
CodeFile="Inventory.aspx.cs" Inherits="Inventory" Title="Enterprises, LLC"
%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<asp:Label ID="lblHeader" runat="server" Text="Welcome to our online
store, selet a Category on the left to view our products."
CssClass="NonHeaderLabel" Width="100%"></asp:Label>
<asp:GridView ID="gvProducts" runat="server"
AllowPaging="True"
OnPageIndexChanging = "gvProducts_PageIndexChanging"
OnRowDataBound = "gvProducts_RowDataBound"
AutoGenerateColumns="False" CellPadding="3" DataKeyNames="ProductID"
GridLines="Horizontal" PageSize="25" Width="100%"
<Columns>
<asp:TemplateField>
<EditItemTemplate>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<img src='Handler.ashx?Size=S&ProductID=<%#
Eval("ProductID") %>&CompanyID=<%# Eval("CompanyID") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Title">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%#
Bind("Title") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%#
Bind("Title") %>'></asp:Label><BR>
<asp:Label ID="Label2" runat="server" Text='<%#
Bind("ProductCondition") %>'></asp:Label>
</ItemTemplate>
<ItemStyle VerticalAlign="Top" />
<ItemStyle VerticalAlign="Top" />
</asp:BoundField>
<asp:TemplateField HeaderText="Price">
<EditItemTemplate>
<asp:TextBox ID="TextBox3" runat="server" Text='<%#
Bind("Price") %>'></asp:TextBox>
</EditItemTemplate>
<ItemStyle VerticalAlign="Top" />
<ItemTemplate>
<asp:Label ID="lblprice" runat="server" Text='<%#
Bind("Price") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:ButtonField ButtonType="Button" Text="Details">
<ControlStyle CssClass="ButtonStyle" />
<ItemStyle Width="50px" VerticalAlign="Top" />
</asp:ButtonField>
</Columns>
<HeaderStyle CssClass="GridViewHeader" />
<AlternatingRowStyle CssClass="GridViewAltRow" />
</asp:GridView>
</asp:Content>
<asp:Content ID="Content2" runat="server"
ContentPlaceHolderID="Contentplaceholder2">
<asp:Label ID="Label1" runat="server" CssClass="HeaderLabel"
Text="Categories" Width="100%"></asp:Label>
<aspataList ID="dlCategories" runat="server" DataKeyField="ID">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server"
OnCommand="CategoryButtonClick" CommandArgument='<%# Eval("ID").ToString()
%>' CommandName='<%# Eval("CategoryDescription").ToString() %>' ><%#
Eval("CategoryDescription").ToString() %></asp:LinkButton>
</ItemTemplate>
</aspataList>
</asp:Content>