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. Advertisements

  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. Advertisements

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:
    456
    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:
    443
    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:
    899
    =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?=
    Feb 3, 2005
  4. Marc Llenas

    ASP.NET - Beginner question

    Marc Llenas, Feb 16, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    469
    Karl Seguin [MVP]
    Feb 16, 2006
  5. Masamune
    Replies:
    0
    Views:
    457
    Masamune
    Nov 13, 2006
  6. =?Utf-8?B?SGFyZHkgV2FuZw==?=

    ASP.NET Ajax beginner question

    =?Utf-8?B?SGFyZHkgV2FuZw==?=, Jan 31, 2007, in forum: ASP .Net
    Replies:
    9
    Views:
    660
    Rob Meade
    Feb 2, 2007
  7. djp

    ASP.net beginner question

    djp, Mar 19, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    358
    Alexey Smirnov
    Mar 19, 2007
  8. B. Chernick
    Replies:
    3
    Views:
    408
    sloan
    Dec 17, 2007
Loading...