beginner asp.net question

  • Thread starter Thread starter suzy
  • Start date Start date
S

suzy

hi,

if i have a web page (lets say a contact us page), where a user enters their
details then clicks "send" at which point an email gets sent to the
webmaster.

now i have created the contact us page using the designer so the page
contains plenty of text boxes etc.

i want to display a simple confirmation message to the user once the user
clicks "send" rather than showing the contact us form again (which is what
is happening now). how can i do this? remember my controls for the contact
us form (ie: text boxes etc) are created in the design view.

thanks
 
I'd put all of the textboxes in a Panel (panel1), and any message
confirmation controls you want in another Panel (panel2). In the designer,
make sure that panel1's Visible property is set to True and panel2's Visible
property is set to False. In the click eventhandler for the button set
panel1's Visible property to False and panel2's Visible property to true.
 
Back
Top