Jump to content

.aspx page only shows source code


Hauk933

Recommended Posts

I was wondering if I'm doing something wrong? I go to my page to test it (this page is just a "Hello World" program to see if I could make it work) and I see the file's contents but not the button and label:

 

<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

   protected void Button1_Click(object sender, EventArgs e)
   {
       Label1.Text = "Hello World!";
   }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
   <title></title>
</head>
<body>
   <form id="form1" runat="server">
   <div>
   
       <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
       <br />
       <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
   
   </div>
   </form>
</body>
</html>

 

http://hauks-fps.heliohost.org/Default.aspx

 

 

Thanks in advance

Hauk

Link to comment
Share on other sites

I think ASP might be disabled right now.

 

ASP and ASP.NET are two very different technologies with similar names.

 

Heliohost does not, and will never support ASP. However, we are planning to support ASP.NET in the future.

Link to comment
Share on other sites

I think ASP might be disabled right now.

 

ASP and ASP.NET are two very different technologies with similar names.

 

Heliohost does not, and will never support ASP. However, we are planning to support ASP.NET in the future.

You're right, of course. I did mean ASP.NET, but thanks for the clarification.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...