Click here to Skip to main content
15,917,618 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Controls are not displaying after hosting the Page Pin
Manas Bhardwaj14-Jul-07 22:36
professionalManas Bhardwaj14-Jul-07 22:36 
AnswerRe: Controls are not displaying after hosting the Page Pin
Guffa14-Jul-07 23:02
Guffa14-Jul-07 23:02 
GeneralRe: Controls are not displaying after hosting the Page Pin
Kurian_Kurian14-Jul-07 23:29
Kurian_Kurian14-Jul-07 23:29 
AnswerRe: Controls are not displaying after hosting the Page Pin
Guffa15-Jul-07 0:34
Guffa15-Jul-07 0:34 
GeneralRe: Controls are not displaying after hosting the Page Pin
Sonia Gupta15-Jul-07 0:58
Sonia Gupta15-Jul-07 0:58 
GeneralRe: Controls are not displaying after hosting the Page Pin
Guffa15-Jul-07 15:15
Guffa15-Jul-07 15:15 
GeneralRe: Controls are not displaying after hosting the Page Pin
Sonia Gupta15-Jul-07 19:05
Sonia Gupta15-Jul-07 19:05 
QuestionRequire help getting started s'il vous plait! Pin
gvanto14-Jul-07 14:20
gvanto14-Jul-07 14:20 
I am just starting out with programming asp.net and have purchased an asp.net webhosting wiht DailyRazor.com.

I then tried to build a simple webpage (in C# as this is the language I am familiar with) with Visual Studio 2005, which gave me 2 files:
Default.aspx
Default.aspx.cs

(when i run 'Run without debugging' in VS, it seems to work OK on my local webserver)

But when I uploaded both these files to my 'httpdocs' folder on the webhost folder
and I try to run file Default.aspx, I get the error:
"Could not load type '_Default'."

But if I remove the 'Inherits="_Default"' part, I get error:

"The 'CodeFile' attribute is not supported by the 'page' directive."

This is the code contained in default.aspx:
<br />
<br />
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %><br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml" ><br />
<head runat="server"><br />
    <title>Untitled Page</title><br />
</head><br />
<body><br />
    <form id="form1" runat="server"><br />
    <div><br />
     Hello World - my first C# webpage !!<br />
    </div><br />
    </form><br />
</body><br />
</html><br />
<br />


And the code file:
<br />
using System;<br />
using System.Data;<br />
using System.Configuration;<br />
using System.Web;<br />
using System.Web.Security;<br />
using System.Web.UI;<br />
using System.Web.UI.WebControls;<br />
using System.Web.UI.WebControls.WebParts;<br />
using System.Web.UI.HtmlControls;<br />
<br />
public partial class _Default : System.Web.UI.Page <br />
{<br />
    protected void Page_Load(object sender, EventArgs e)<br />
    {<br />
<br />
    }<br />
}<br />
<br />



If anyone knows of a good tutorial which shows how to create a simple webpage in VS2005 (language C#, for the code-behind anyway) and then upload it to a webserver (though I thought this would have been the same as whatever works on the local server) that would be a great help.

Many thanks,
Gerry
asp.net newbie



Put A Smile On Your Face
http://www.thecrazywebsite.com

AnswerRe: Require help getting started s'il vous plait! Pin
just3ala215-Jul-07 6:07
just3ala215-Jul-07 6:07 
GeneralRe: Require help getting started s'il vous plait! Pin
Pete O'Hanlon15-Jul-07 10:01
mvePete O'Hanlon15-Jul-07 10:01 
GeneralRe: Require help getting started s'il vous plait! Pin
just3ala215-Jul-07 21:20
just3ala215-Jul-07 21:20 
AnswerRe: Require help getting started s'il vous plait! Pin
Pete O'Hanlon15-Jul-07 10:21
mvePete O'Hanlon15-Jul-07 10:21 
AnswerRe: Require help getting started s'il vous plait! Pin
neerubee15-Jul-07 19:37
neerubee15-Jul-07 19:37 
QuestionContentPlaceHolder Class Pin
Brendan Vogt14-Jul-07 12:45
Brendan Vogt14-Jul-07 12:45 
AnswerRe: ContentPlaceHolder Class Pin
Guffa14-Jul-07 12:57
Guffa14-Jul-07 12:57 
Questionhttp to https Pin
aditya.net14-Jul-07 9:10
aditya.net14-Jul-07 9:10 
AnswerRe: http to https Pin
Paul Conrad14-Jul-07 10:27
professionalPaul Conrad14-Jul-07 10:27 
GeneralRe: http to https Pin
aditya.net14-Jul-07 14:33
aditya.net14-Jul-07 14:33 
GeneralRe: http to https Pin
Paul Conrad14-Jul-07 14:58
professionalPaul Conrad14-Jul-07 14:58 
GeneralRe: http to https Pin
aditya.net14-Jul-07 15:32
aditya.net14-Jul-07 15:32 
GeneralRe: http to https Pin
Manas Bhardwaj14-Jul-07 22:40
professionalManas Bhardwaj14-Jul-07 22:40 
AnswerRe: http to https Pin
neerubee15-Jul-07 19:43
neerubee15-Jul-07 19:43 
QuestionHow to bound object for editing Gridview Pin
Kurian_Kurian14-Jul-07 3:56
Kurian_Kurian14-Jul-07 3:56 
QuestionServer.Mappath Pin
Kurian_Kurian14-Jul-07 3:19
Kurian_Kurian14-Jul-07 3:19 
AnswerRe: Server.Mappath Pin
DarrollWalsh14-Jul-07 3:57
DarrollWalsh14-Jul-07 3:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.