queue list

Last post 07-13-2010, 10:57 PM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  07-13-2010, 3:35 PM 62461

    queue list

    hello after the examples that I use to change the design of the waiting list. in visual studio design changes, but in execution it does not take into account?
    Have you a new simple example in vb.net for exchange the queue list?
  •  07-13-2010, 10:57 PM 62465 in reply to 62461

    Re: queue list

    Hi Troyan,
     
    Please try the example below
     
    1. <%@ Page Language="VB" %>   
    2.   
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    4.   
    5. <script runat="server">   
    6.     Protected Sub Attachments1_PreRender(ByVal sender As ObjectByVal e As EventArgs)   
    7.         Attachments1.GetItemsTable().Visible = False  
    8.         DataList1.DataSource = Attachments1.Items   
    9.         DataList1.DataBind()   
    10.   
    11.   
    12.     End Sub  
    13.     Protected Sub DataList1_ItemCommand(ByVal source As ObjectByVal e As DataListCommandEventArgs)   
    14.         Attachments1.Items(e.Item.ItemIndex).Remove()   
    15.     End Sub  
    16.   
    17. </script>   
    18.   
    19. <html xmlns="http://www.w3.org/1999/xhtml">   
    20. <head runat="server">   
    21.     <title>Untitled Page</title>   
    22. </head>   
    23. <body>   
    24.     <form id="form1" runat="server">   
    25.         <div>   
    26.             <CuteWebUI:UploadAttachments InsertText="Upload Multiple files Now" runat="server"  
    27.                 OnPreRender="Attachments1_PreRender" ID="Attachments1">   
    28.             </CuteWebUI:UploadAttachments>   
    29.             <asp:DataList ID="DataList1" runat="server" OnItemCommand="DataList1_ItemCommand">   
    30.                 <ItemTemplate>   
    31.                     <table cellpadding="0" cellspacing="0" border="0" style="border-top: solid 1px #ededed;   
    32.                         border-bottom: solid 1px #ededed;">   
    33.                         <tr>   
    34.                             <td style="border-left: solid 1px #ededed; width: 40px">   
    35.                                 <img src="CuteWebUI_Uploader_Resource.axd?type=file&file=circle.png&_ver=634009764514705972" /></td>   
    36.                             <td style="border-left: solid 1px #ededed; width: 300px">   
    37.                                 <%# Eval("FileName") %>   
    38.                                 (   
    39.                                 <%# Eval("FileSize") %>   
    40.                                 Byte )   
    41.                             </td>   
    42.                             <td style="border-left: solid 1px #ededed; border-right: solid 1px #ededed; width: 50px">   
    43.                                 <asp:LinkButton ID="remove" runat="server">remove</asp:LinkButton></td>   
    44.                         </tr>   
    45.                     </table>   
    46.                 </ItemTemplate>   
    47.             </asp:DataList>   
    48.         </div>   
    49.     </form>   
    50. </body>   
    51. </html>  
    Regards,
     
    ken
View as RSS news feed in XML