Re: Uploader in multiple places on one page

  •  10-08-2010, 10:46 PM

    Re: Uploader in multiple places on one page

    Hi gabriels,
     
    Can you explain your requirement on detail? Maybe you can try the example below, tell me if it is not you need.
     
    Please show me more detail, so I can create the example for you.
     
    1. <%@ Page Language="C#" %>  
    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.   
    7.   
    8.     protected void btnShow1_Click(object sender, EventArgs e)  
    9.     {  
    10.         form1.Visible = true;  
    11.         form2.Visible = !form1.Visible;  
    12.     }  
    13.   
    14.     protected void btnShow2_Click(object sender, EventArgs e)  
    15.     {  
    16.         form2.Visible = true;  
    17.         form1.Visible = !form1.Visible;  
    18.     }  
    19. </script>  
    20.   
    21. <html xmlns="http://www.w3.org/1999/xhtml">  
    22. <head runat="server">  
    23.     <title>Untitled Page</title>  
    24. </head>  
    25. <body>  
    26.     <form id="form1" runat="server">  
    27.         <CuteWebUI:UploadAttachments ID="attachment1" runat="server" InsertText="Upload1">  
    28.         </CuteWebUI:UploadAttachments>  
    29.         <asp:Button ID="btnShow2" runat="server" Text="ShowForm2" OnClick="btnShow2_Click" />  
    30.     </form>  
    31.     <form id="form2" runat="server" visible="false">  
    32.         <CuteWebUI:UploadAttachments ID="UploadAttachments1" runat="server" InsertText="Upload2">  
    33.         </CuteWebUI:UploadAttachments>  
    34.         <asp:Button ID="btnShow1" runat="server" Text="ShowForm1" OnClick="btnShow1_Click" />  
    35.     </form>  
    36. </body>  
    37. </html> 
    Regards,
     
    Ken
View Complete Thread