6月 15

  <asp:Repeater ID="rptThread" runat="server" OnItemCommand="rptThread_ItemCommand">
                    <ItemTemplate>
      <tr class="turn" >
       <td class="line">
        &nbsp;<%# Eval("Ranking")%></td>
       <td class="line mid">
        &nbsp;<%#  Eval("TotalPoint").ToString() %></td>
       <td class="line">
        <a target="_blank" href='http://forum.qidian.com/ThreadDetail.aspx?ThreadId=<%# Eval("ThreadId") %>'>
         &nbsp;<%# Eval("Subject")%></td>
         </a>
       <td class="line mid">
        <%# Eval("PostDate") %>
       </td>         
       <td class="line left">       
        <asp:LinkButton ID="lbtnDel" OnClientClick="return confirm('此操作不可恢复,确定是否要删除?');" 
runat="server" Text="删除活动帖子" CommandName="del" CommandArgument='<%# Eval("threadid") %>'></asp:LinkButton>
       </td>
      </tr>
     </ItemTemplate>
 </asp:Repeater>

protected void rptThread_ItemCommand(object source, RepeaterCommandEventArgs e)
   {
       if (e.CommandName == "del")
       {
           int threadId = int.Parse(e.CommandArgument.ToString());
           try
           {
               threadCampaignManager.DeleteThreadById(threadId);
           }
           catch (Exception ex)
           {
               LogHelper.Error("删除书评活动帖子失败" + ex.Message);
           }
           BindRepeater();
       }
   }

written by ocean

6月 07

全国同名查询

http://zhaoren.idtag.cn/samename/searchName!searchIndex.htm

 

 

在线代码着色

http://fayaa.com/code/new/

written by ocean