|
[x]
Attachment Details
|
||
1: 2: |
<ew:CalendarPopup ID="start_dateTextBox" runat="server"
Text='<%# Bind("start_date") %>' />
|
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
|
Loading Advertisement... |
| Open Discussion |
Leeneck Technology
<img alt="" src="../../Images/twister2
<asp:ImageButton ID="ImageButton1" runat="server" AlternateText="Save"
ImageUrl="~/Images/save.pn
<asp:ImageButton ID="ImageButton2" runat="server" AlternateText="Cancel/Clos
ImageUrl="~/Images/close.p
Select Item Number
<asp:ListBox ID="ListBox1" DataTextField="item_no" DataValueField="item_no"
runat="server" AutoPostBack="True"></asp:
<asp:ListView ID="ListView1" runat="server" DataKeyNames="item_no,star
DataSourceID="SqlDataSourc
<AlternatingItemTemplate>
<tr style="background-color:#F
<td>
<asp:Button ID="DeleteButton" runat="server" CommandName="Delete"
Text="Delete" />
<asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
</td>
<td>
<asp:Label ID="item_noLabel" runat="server" Text='<%# Eval("item_no") %>' />
</td>
<td>
<asp:Label ID="start_dateLabel" runat="server"
Text='<%# Eval("start_date") %>' />
</td>
<td>
<asp:Label ID="end_dateLabel" runat="server" Text='<%# Eval("end_date") %>' />
</td>
<td>
<asp:Label ID="costLabel" runat="server" Text='<%# Eval("cost") %>' />
</td>
</tr>
</AlternatingItemTemplate>
<LayoutTemplate>
<table runat="server">
<tr runat="server">
<td runat="server">
<table ID="itemPlaceholderContain
style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;
<tr runat="server" style="background-color:#D
<th runat="server">
</th>
<th runat="server">
Item Number</th>
<th runat="server">
Start Date</th>
<th runat="server">
End Date</th>
<th runat="server">
Cost</th>
</tr>
<tr ID="itemPlaceholder" runat="server">
</tr>
</table>
</td>
</tr>
<tr runat="server">
<td runat="server"
style="text-align: center;background-color: #CCCCCC;font-family: Verdana, Arial, Helvetica, sans-serif;color: #000000;">
</td>
</tr>
</table>
</LayoutTemplate>
<InsertItemTemplate>
<tr style="">
<td>
<asp:Button ID="InsertButton" runat="server" CommandName="Insert"
Text="Insert" />
<asp:Button ID="CancelButton" runat="server" CommandName="Cancel"
Text="Clear" />
</td>
<td>
<asp:TextBox ID="item_noTextBox" runat="server" Text='<%# Bind("item_no") %>' />
</td>
<td>
<ew:CalendarPopup ID="start_dateTextBox" runat="server"
Text='<%# Bind("start_date") %>' />
</td>
<td>
<ew:CalendarPopup ID="end_dateTextBox" runat="server"
Text='<%# Bind(DateTime.Parse(start_
</td>
<td>
<asp:TextBox ID="costTextBox" runat="server" Text='<%# Bind("cost") %>' />
</td>
</tr>
</InsertItemTemplate>
<SelectedItemTemplate>
<tr style="background-color:#0
<td>
<asp:Button ID="DeleteButton" runat="server" CommandName="Delete"
Text="Delete" />
<asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
</td>
<td>
<asp:Label ID="item_noLabel" runat="server" Text='<%# Eval("item_no") %>' />
</td>
<td>
<asp:Label ID="start_dateLabel" runat="server"
Text='<%# Eval("start_date") %>' />
</td>
<td>
<asp:Label ID="end_dateLabel" runat="server" Text='<%# Eval("end_date") %>' />
</td>
<td>
<asp:Label ID="costLabel" runat="server" Text='<%# Eval("cost") %>' />
</td>
</tr>
</SelectedItemTemplate>
<EmptyDataTemplate>
<table runat="server"
style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;
<tr>
<td>
No data was returned.</td>
</tr>
</table>
</EmptyDataTemplate>
<EditItemTemplate>
<tr style="background-color:#0
<td>
<asp:Button ID="UpdateButton" runat="server" CommandName="Update"
Text="Update" />
<asp:Button ID="CancelButton" runat="server" CommandName="Cancel"
Text="Cancel" />
</td>
<td>
<asp:Label ID="item_noLabel1" runat="server" Text='<%# Eval("item_no") %>' />
</td>
<td>
<asp:Label ID="start_dateLabel1" runat="server"
Text='<%# Eval("start_date") %>' />
</td>
<td>
<asp:TextBox ID="end_dateTextBox" runat="server"
Text='<%# Bind("end_date") %>' />
</td>
<td>
<asp:TextBox ID="costTextBox" runat="server" Text='<%# Bind("cost") %>' />
</td>
</tr>
</EditItemTemplate>
<ItemTemplate>
<tr style="background-color:#D
<td>
<asp:Button ID="DeleteButton" runat="server" CommandName="Delete"
Text="Delete" />
<asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
</td>
<td>
<asp:Label ID="item_noLabel" runat="server" Text='<%# Eval("item_no") %>' />
</td>
<td>
<asp:Label ID="start_dateLabel" runat="server"
Text='<%# Eval("start_date") %>' />
</td>
<td>
<asp:Label ID="end_dateLabel" runat="server" Text='<%# Eval("end_date") %>' />
</td>
<td>
<asp:Label ID="costLabel" runat="server" Text='<%# Eval("cost") %>' />
</td>
</tr>
</ItemTemplate>
</asp:ListView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:TwisterC
DeleteCommand="DELETE FROM [item_master_cost] WHERE [item_no] = @item_no AND [start_date] = @start_date"
InsertCommand="INSERT INTO [item_master_cost] ([item_no], [start_date], [end_date], [cost]) VALUES (@item_no, @start_date, @end_date, @cost)"
SelectCommand="SELECT [item_no], [start_date], [end_date], [cost] FROM [item_master_cost]"
UpdateCommand="UPDATE [item_master_cost] SET [end_date] = @end_date, [cost] = @cost WHERE [item_no] = @item_no AND [start_date] = @start_date">
<DeleteParameters>
<asp:Parameter Name="item_no" Type="String" />
<asp:Parameter Name="start_date" Type="DateTime" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="end_date" Type="DateTime" />
<asp:Parameter Name="cost" Type="Decimal" />
<asp:Parameter Name="item_no" Type="String" />
<asp:Parameter Name="start_date" Type="DateTime" />
</UpdateParameters>
<InsertParameters>
<asp:ControlParameter Name="item_no" Type="String" ControlID="ListBox1" />
<asp:Parameter Name="start_date" Type="DateTime" />
<asp:Parameter Name="end_date" Type="DateTime" />
<asp:Parameter Name="cost" Type="Decimal" />
</InsertParameters>
</asp:SqlDataSource>