Contact Form creation help?
Posted on 2005-05-03
i have just created a contact form on my contact.aspx, it uses code behind. so what i intended to was this
Create 1 panel (asp control) and place tables, textboxes etc into this
Create another panel (asp control) and place 2 confirmation msgs i.e. "Confirmed!", and "OOps a problem, couldn't send mail"
Now i think i am going down the right way? Basically i make panel 1 visibal but on postback i make panel 1 invisible and then make panel 2 visible.
Panel 2 will then either say "Confirmed" or "NOT" .. my question is,.. is this correct and how to do i switch between the 2 different msgs in panel 2?
Should i use a standard Label control(asp control) , i.e. label 1 and label 2... and then make either label1 or label2 invisible depending on the outcome OR use more panels, i think panels carry quite alot of overhead?
Any ideas or advice would be really appreciated