Click here to Skip to main content
16,004,727 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

How do I create a ContactUs Form in Asp.Net MVC with Validation after click on submit button?

Should I create a model and view and write the code with Razor Commands?

I want to show a successful message after sending correctly with Ajax.


Thanks for any help

What I have tried:

I have tried with model and view, but I don't know how to show the alert message after

click on submit button with Ajax?
Posted
Updated 20-Sep-17 7:21am
Comments
F-ES Sitecore 20-Sep-17 9:36am    
There's nothing special about a contact us form, it's just a form. Learn MVC and you'll know how to do forms, you can't learn a technology from scratch by posting questions on a forum.

1 solution

Recommend you look at the following links. All of my links are first page of what should have been a simple google search.

create contact us for asp.net mvc - Google Search[^]

How to Implement Contact Us Page in ASP.NET MVC (ASP.NET 5 )[^]

c# - Contact Us Form ASP.net MVC - Stack Overflow[^]

how to create a contact us page in MVC ? | The ASP.NET Forums[^]

asp.net - MVC Contact Form with Email - Stack Overflow[^]

Creating an Asynchronous Contact Form in an ASP.NET MVC Project[^]

Creating a contact form with ASP.NET MVC | Frederik Vig – ASP.NET developer[^]

Now if you were to follow one of these links instructions and still get stuck. Then feel free to come back with some code samples and a clear explanation of your issue you're having and I am sure someone would be more than willing to help.
 
Share this answer
 
Comments
davood rz 21-Sep-17 10:02am    
Thanks a lot

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900