Re: beginner asp.net question

Discussion in 'ASP .Net' started by Phil Winstanley [Microsoft MVP ASP.NET], May 15, 2004.

  1. Suzy,

    There is a really simple way to impliment this functionality, all you
    have to do is wrap all your TextBoxes and the Submit button with a
    Panel control; System.Web.UI.WebControls.Panel.

    Then once the page has been submitted and you've sent the e-mail all
    you need to do is tell the Panel to "hide" by setting it's Visible
    property to false.

    This will hide all the content of the Panel control.

    <asp:panel id="Panel1" runat="server">
    <!-- Text boxes and stuff -->
    </asp:panel>

    Panel1.Visible = false;

    Does this help?
    Phil Winstanley
    Microsoft ASP.NET MVP
    http://www.myservicescentral.com
    Phil Winstanley [Microsoft MVP ASP.NET], May 15, 2004
    #1
    1. Advertising

  2. Phil Winstanley [Microsoft MVP ASP.NET]

    suzy Guest

    of course! silly me. thanks a lot!

    "Phil Winstanley [Microsoft MVP ASP.NET]" <> wrote in
    message news:c864si$...
    > Suzy,
    >
    > There is a really simple way to impliment this functionality, all you
    > have to do is wrap all your TextBoxes and the Submit button with a
    > Panel control; System.Web.UI.WebControls.Panel.
    >
    > Then once the page has been submitted and you've sent the e-mail all
    > you need to do is tell the Panel to "hide" by setting it's Visible
    > property to false.
    >
    > This will hide all the content of the Panel control.
    >
    > <asp:panel id="Panel1" runat="server">
    > <!-- Text boxes and stuff -->
    > </asp:panel>
    >
    > Panel1.Visible = false;
    >
    > Does this help?
    > Phil Winstanley
    > Microsoft ASP.NET MVP
    > http://www.myservicescentral.com
    >
    suzy, May 16, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. suzy

    beginner asp.net question

    suzy, May 15, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    384
    Andy Gaskell
    May 15, 2004
  2. pei_world

    beginner's question about asp.net

    pei_world, Dec 26, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    374
    Fabio
    Dec 26, 2004
  3. =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?=

    No Class at ALL!!! beginner/beginner question

    =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?=, Feb 2, 2005, in forum: ASP .Net
    Replies:
    7
    Views:
    570
    =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?=
    Feb 3, 2005
  4. Rensjuh
    Replies:
    7
    Views:
    962
    Mabden
    Sep 2, 2004
  5. william nelson

    Beginner's Beginner

    william nelson, Apr 11, 2011, in forum: Ruby
    Replies:
    7
    Views:
    211
    7stud --
    Apr 12, 2011
Loading...

Share This Page