ASP.NET not working ?!

Status
Not open for further replies.

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
Have to change it to be comatible to x10hosting
 

pony100

New Member
Messages
4
Reaction score
0
Points
0
Derek,

Can you give me a clue, what I need to change to be compatible? As far as I know I have copied the example correctly.

An additional question: I have copied a web.config with customErrors="Off" shouldn't that give me a detailed .NET error page?

Thanks in advance
 

Jarryd

Community Advocate
Community Support
Messages
5,534
Reaction score
43
Points
48
Hello, as far as i can see. I don't see any errors at all. I just see a blank page. Are you sure your code is correct? Can you post it here?
 

pony100

New Member
Messages
4
Reaction score
0
Points
0
My helloworld.aspx
Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="helloworld.aspx.cs" Inherits="helloworld" %>

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

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Hello world</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        Hello world.
    </div>
    </form>
</body>
</html>

My helloworld.aspx.cs
Code:
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class helloworld : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
}
 

masshuu

Head of the Geese
Community Support
Enemy of the State
Messages
2,293
Reaction score
50
Points
48
i may not be correct due to lack of experience with asp.net, but {file}.aspx.cs files are usually pre-compiled into a dll that is put into the bin folder, make sure the bin folder is uploaded.

If i'm right, you can use free tools like SharpDevelop or MonoDevelop.
 
Last edited:
Status
Not open for further replies.
Top