c# - Hiding contact form and showing confirmation message -
i have mvc page has large amount of content , 'contact us' form. once submitted, wish hide form , show confirmation message.
what best way approach this? i've found tutorials use separate 'thank you' controller , view, seems counter-intuitive of course have repeat page content.
thank in advance.
you can use partial view , ajax.beginform
instead of html.beginform
. might you've read when mentioned controller , view. partial views can reused in various containing views.
Comments
Post a Comment