Click here to Skip to main content
15,607,524 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I'm trying to display a simple Hello World in my code behind but noticing that in Godaddy share environment is not working. No error, nothing, it only display what I have in my page but not going to the code behind.


using System;
using System.Web.UI;
using System.Net.Mail;

namespace cafeda
    public partial class Default : Page
        protected void Page_Load(object sender, EventArgs e){
          Response.Write("Hello World! Page has not been posted back.");
          if (IsPostBack){`enter code here`
             Response.Write("Hello World! Page has been posted back.");

Any ideas. Thank you!

What I have tried:

It is working correctly local. Is not showing any error, just not going to the code behind page

Any ideas. Thank you!
Updated 30-Jan-17 17:33pm
Member 12974746 30-Jan-17 20:18pm    
Homero Rivera 30-Jan-17 21:39pm    
What URL are you typing?
Have you set the default page accordingly in GoDaddy options?
Bryian Tan 30-Jan-17 22:16pm    
yeah, what the URL? maybe we can take a peek :)

1 solution

Please check if you are deploying your code inside the folder which is used for deployment of the website. On your website & domain page, check the folder which is mapped to your website. Label against you should your mapped folder should be "Website at".

Also, check if you default.aspx is set as a default page.
Share this answer

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