Knowledgebase

How do I create a contact form in ASP.NET?

The following guide will show you how to create a simple contact form on your ASP webhotel.
Form

Right click the icon and select "save destination as.." :  (default.aspx)

This file contains the code for the contact form.

Next you should download the settings file, pick the appropriate file according to the type of wehotel you have.

For private hosting save the following file:  (default.aspx.cs)

For business hosting save the following file:  (default.aspx.cs)

 

Next step is to update the settings file to correspond with your email account: open the default.aspx.cs file in a text-editor.

The bottom illustration shows what the code in the file looks like.

The red arrow points to the grey text CHANGEME@YourDomain which should be replaced with your email address.
The blue arrow points to the grey text CHANGEME which should be replaced with the password for your email address. 

When updated, save the file and upload all files to your webhotel.
 

Forklaring


If you would like Surftown to perform this task for you, or if you are in need of any other assistance, please have a look at the paid services we can offer through our Service Desk Services: https://www.surftown.com/da/service-desk/

Contact
Should you not find what you are looking for then feel free to ask our support

Create A Ticket
Service Desk
Are you facing bigger challenges which requires a bit more know-how and time than you have?

Surftown Service Desk is services where we do the work to you. Our Service desk will get the job done.

Do it for me