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.
- <%@ Page Language="C#" %>
-
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
- <script runat="server">
-
-
- protected void btnShow1_Click(object sender, EventArgs e)
- {
- form1.Visible = true;
- form2.Visible = !form1.Visible;
- }
-
- protected void btnShow2_Click(object sender, EventArgs e)
- {
- form2.Visible = true;
- form1.Visible = !form1.Visible;
- }
- </script>
-
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title>Untitled Page</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <CuteWebUI:UploadAttachments ID="attachment1" runat="server" InsertText="Upload1">
- </CuteWebUI:UploadAttachments>
- <asp:Button ID="btnShow2" runat="server" Text="ShowForm2" OnClick="btnShow2_Click" />
- </form>
- <form id="form2" runat="server" visible="false">
- <CuteWebUI:UploadAttachments ID="UploadAttachments1" runat="server" InsertText="Upload2">
- </CuteWebUI:UploadAttachments>
- <asp:Button ID="btnShow1" runat="server" Text="ShowForm1" OnClick="btnShow1_Click" />
- </form>
- </body>
- </html>
Regards,
Ken