monospace; border-bottom-style: none; color: black; padding-bottom: 0px; direction: ltr; text-align: left; padding-top: 0px; border-right-style: none; padding-left: 0px; margin: 0em; line-height: 12pt; padding-right: 0px; width: 100%; background-color: white"><asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand">
<ItemTemplate>
<li><span class="nmem_prolit">
<asp:Label ID="lblName" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
</span>
<asp:LinkButton ID="lbtnModify" runat="server" Text="<img name="btnModify" src=images/btnEdit.gif border=0>"
Font-Underline="true" ForeColor="Red" CommandName="Edit" CommandArgument='<%#Eval("EP_TempID") %>'></asp:LinkButton>
<asp:LinkButton ID="lbtnDelete" runat="server" Text="<img name="btnDelete" src=images/btnDelete.gif border=0>"
Font-Underline="true" ForeColor="Red" CommandName="Delete" OnClientClick="javascript:return confirm('你确定要删除吗?');"
CommandArgument='<%#Eval("EP_TempID") %>'></asp:LinkButton>
</li>
</ItemTemplate>
</asp:Repeater>
protected void rptList_ItemCommand(object source, RepeaterCommandEventArgs e)
{
ViewState["mEP_TempID"] = e.CommandArgument;
if (e.CommandName == "Edit")
{
GetProductInfo(Convert.ToInt32(ViewState["mEP_TempID"]));
}
if (e.CommandName == "Delete")
{
DeleteProductInfo(Convert.ToInt32(ViewState["mEP_TempID"]));
}
}