beginner asp.net question

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
 
A

Andy Gaskell

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top