Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TryOutSteps.aspx.cs" Inherits="PCS2.Forms.TryOutSteps" %>
- <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
- here is listview
- <br /><br />
- Product: <asp:DropDownList ID="ProductTypesDrop" runat="server" CssClass="span6" AutoPostBack="true" ></asp:DropDownList>
- <br />
- <br />
- Location: <asp:DropDownList ID="LocationDrop" runat="server" CssClass="span6" AutoPostBack="true" ></asp:DropDownList>
- <br />
- <br />
- <asp:TextBox ID="TryOutText" runat="server">1</asp:TextBox><br />
- <asp:ListView ID="TryOutStepList" runat="server" DataKeyNames="TryOutStepID"
- OnDataBound="TryOutStepList_DataBound"
- OnItemInserting="TryOutStepList_ItemInserting"
- OnItemUpdating="TryOutStepList_ItemUpdating"
- OnItemDeleting ="TryOutStepList_ItemDeleting"
- OnItemEditing="TryOutStepList_ItemEditing"
- OnItemCanceling="TryOutStepList_ItemCanceling"
- InsertItemPosition="LastItem">
- <LayoutTemplate>
- <table runat="server" id="table1" class="table">
- <tr runat="server" id="itemPlaceholder"></tr>
- <%-- <tr><td colspan="5">
- <asp:LinkButton Text="Click here to add a new Step" ID="lnkNew" runat="server" Font-Bold="true" OnClick="NewItem"></asp:LinkButton>
- </td></tr>--%>
- </table>
- </LayoutTemplate>
- <ItemTemplate>
- <tr runat="server">
- <td>
- <asp:Button ID="DeleteButton" runat="server" CommandName="Delete" Text="Delete" />
- <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
- </td>
- <td runat="server">
- <asp:Label ID="ProcessLabel" runat="server" Text='<%#Eval("ProcessDesc") %>'></asp:Label>
- </td>
- <td runat="server">
- <asp:Label ID="StepOrderLabel" runat="server" Text='<%#Eval("StepOrder") %>'></asp:Label>
- </td>
- <td runat="server">
- <asp:Label ID="DescriptionLabel" runat="server" Text='<%#Eval("Description") %>'></asp:Label>
- </td>
- <td runat="server">
- <asp:Label ID="StepTypeLabel" runat="server" Text='<%#Eval("StepTypeDesc") %>'></asp:Label>
- </td>
- <td></td>
- </tr>
- </ItemTemplate>
- <LayoutTemplate>
- <table runat="server">
- <tr runat="server">
- <td runat="server">
- <table id="itemPlaceholderContainer" runat="server" border="0" style="">
- <tr runat="server" style="">
- <th runat="server"></th>
- <th runat="server">Process</th>
- <th runat="server">Step Order</th>
- <th runat="server">Description</th>
- <th runat="server">Step Type</th>
- </tr>
- <tr runat="server" id="itemPlaceholder">
- </tr>
- </table>
- </td>
- </tr>
- <tr runat="server">
- <td runat="server" style=""></td>
- </tr>
- </table>
- </LayoutTemplate>
- <EditItemTemplate>
- <tr>
- <td>
- <asp:Button ID="UpdateButton" runat="server" CommandName="Update" Text="Update" />
- <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Cancel" />
- </td>
- <td valign="top">
- <asp:DropDownList ID="ProcessDropEdit" runat="server"></asp:DropDownList>
- </td>
- <td>
- <asp:TextBox ID="StepOrderTextEdit" runat="server" Text='<%#Bind("StepOrder") %>'></asp:TextBox>
- </td>
- <td>
- <asp:TextBox ID="DescriptionTextEdit" runat="server" Text='<%#Bind("Description") %>'></asp:TextBox>
- </td>
- <td>
- <asp:DropDownList ID="StepTypeDropEdit" runat="server"></asp:DropDownList>
- </td>
- </tr>
- </EditItemTemplate>
- <InsertItemTemplate>
- <tr style="background-color:aliceblue">
- <td>
- <asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="Insert" />
- <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Cancel" />
- </td>
- <td valign="top">
- <asp:DropDownList ID="ProcessDropIns" runat="server"></asp:DropDownList>
- </td>
- <td>
- <asp:TextBox ID="StepOrderTextIns" runat="server" Text='<%#Bind("StepOrder") %>'></asp:TextBox>
- </td>
- <td>
- <asp:TextBox ID="DescriptionTextIns" runat="server" Text='<%#Bind("Description") %>'></asp:TextBox>
- </td>
- <td>
- <asp:DropDownList ID="StepTypeDropIns" runat="server"></asp:DropDownList>
- </td>
- </tr>
- </InsertItemTemplate>
- </asp:ListView>
- <%--
- <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1"></asp:ListView>
- <asp:TextBox ID="TryOutIDText" runat="server">1</asp:TextBox>
- <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DefaultConnection %>"
- SelectCommand="GetTryOutStep" DeleteCommand="DELETE FROM TryOutStep WHERE (TryOutStepID = @TryOutStepID)"
- InsertCommand="InsertTryOutStep" InsertCommandType="StoredProcedure" SelectCommandType="StoredProcedure"
- UpdateCommand="UpdateTryOutStep" UpdateCommandType="StoredProcedure">
- <DeleteParameters>
- <asp:Parameter Name="TryOutStepID" />
- </DeleteParameters>
- <InsertParameters>
- <asp:Parameter Direction="InputOutput" Name="TryOutStepID" Type="Int32" />
- <asp:Parameter Name="TryOutID" Type="Int32" />
- <asp:Parameter Name="StepOrder" Type="Int16" />
- <asp:Parameter Name="CreatedBy" Type="String" />
- <asp:Parameter Name="ModifiedBy" Type="String" />
- <asp:Parameter Name="Description" Type="String" />
- <asp:Parameter Name="BOMID" Type="Int32" />
- <asp:Parameter Name="ProcessID" Type="Int32" />
- <asp:Parameter Name="StepTypeID" Type="Int32" />
- <asp:Parameter Name="TestID" Type="Int32" />
- </InsertParameters>
- <SelectParameters>
- <asp:FormParameter DefaultValue="1" FormField="TryOutIDText" Name="TryOutID" Type="Int32" />
- <asp:Parameter Name="TryOutStepID" Type="Int32" />
- </SelectParameters>
- <UpdateParameters>
- <asp:Parameter Name="TryOutStepID" Type="Int32" />
- <asp:Parameter Name="StepOrder" Type="Int16" />
- <asp:Parameter Name="ModifiedBy" Type="String" />
- <asp:Parameter Name="Description" Type="String" />
- <asp:Parameter Name="BOMID" Type="Int32" />
- <asp:Parameter Name="ProcessID" Type="Int32" />
- <asp:Parameter Name="StepTypeID" Type="Int32" />
- <asp:Parameter Name="TestID" Type="Int32" />
- </UpdateParameters>
- </asp:SqlDataSource>--%>
- </asp:Content>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement