| Author |
Message |
complete Ronin
Joined: 12 Apr 2007 Posts: 43
|
Posted: Thu Dec 13, 2007 7:23 pm Post subject: My "Hello World" in ASP |
|
|
I have written my first "Hello World" program in ASP. I thought I would post here how it is done and ask if anyone can suggest how to incorporate C#.
The first step was to download the free "Microsoft Visual Web Developer 2005 Express Edition" from microsoft.com
The next step was to install and run this program. Then create a new web page by clicking on File -> New Web Page. This will bring up this windowL
From this window, pick "ASP.Net Web Site" and click the OK button.
Then I edited the Default.aspx file so it reads like this:
| Code: | <Page>
<HelloWorldLabel>
<DOCTYPE>
<html>
<head>
<title>Untitled Page</title>
</head>
<body>
<form>
<div>
<asp></asp>
</div>
</form>
</body>
</html> |
And this works.
So the next step is to incorporate C# into this "Hello World" program. Can anyone make a suggestion? |
|
| Back to top |
|
 |
bdi Nobody
Joined: 21 Oct 2004 Posts: 1646 Location: Chicago
|
Posted: Sun Dec 16, 2007 5:18 pm Post subject: |
|
|
What does your Hello World app do? Creating a tag and calling it Hello World Label doesn't make it display that.
Also your tags <asp> and </asp> aren't really doing anything.
If you want to make this somewhat ASP.NET like, in place of where you have the <asp> tags you could put in a label control (drag it in from the toolbox) and then set the Text to "Hello World".
To start using the C# with it, you will want to edit the default.aspx.vb file and add a Page_Load event and in there set the text of the label you add (Label1.Text = "Hello World" if you leave the default label name). |
|
| Back to top |
|
 |
|